NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-vax/46715: Relocation in .text section in vax does not work



The following reply was made to PR port-vax/46715; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, port-vax-maintainer%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-vax/46715: Relocation in .text section in vax does not work
Date: Tue, 17 Jul 2012 14:22:53 -0400

 On Jul 17,  4:00pm, paulkoning%comcast.net@localhost 
(paulkoning%comcast.net@localhost) wrote:
 -- Subject: port-vax/46715: Relocation in .text section in vax does not work
 
 The bug could be in many places, but not in ld.elf_so:
 1. If the source is compiled with -fPIC or -fpic, then it should not emit
    R_VAX_32; if it does then it is an assembler bug.
 2. If the source is not compiled with -fPIC or -fpic, then it is ok to
    emit R_VAX_32, but but then the linker should mark the object with
    DT_TEXTREL so that the rtld knows to mmap the text writable before
    doing relocations.
 
 Can you investigate who is at fault? The package for not passing -f{PIC,pic}?
 The assembler/linker? Both?
 
 christos
 


Home | Main Index | Thread Index | Old Index