This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix BZ/186: Ld failed to issue an error on non-PIC code when building shared library


On Fri, May 28, 2004 at 11:20:29AM -0700, H. J. Lu wrote:
> PIC is required on x86_64 for shared library. But the linker fails to
> do so under certain circumstances, which leads to the run-time error.
> This patch catches those errors. I also updated the testsuite.
> 
> 

The patch is wrong. I should check those relocations in
elf64_x86_64_relocate_section and use SYMBOL_REFERENCES_LOCAL. Here is
the updated one.

BTW, the bug is at

http://sources.redhat.com/bugzilla/show_bug.cgi?id=186


H.J.

Attachment: bfd-x86_64-pic-2.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]