bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24905] New: X86 PCREL relocation against hidden symbol defined i


From: sjc+binutils_bugzilla at immunant dot com
Subject: [Bug ld/24905] New: X86 PCREL relocation against hidden symbol defined in linker scripts fails
Date: Tue, 13 Aug 2019 23:39:41 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24905

            Bug ID: 24905
           Summary: X86 PCREL relocation against hidden symbol defined in
                    linker scripts fails
           Product: binutils
           Version: 2.33 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: sjc+binutils_bugzilla at immunant dot com
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 11947
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11947&action=edit
test.c

Commit 83924b3846361f2f76f9a6e7b5afa01c0eebbd4f
(https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=83924b3846361f2f76f9a6e7b5afa01c0eebbd4f)
moved the PIC check earlier in the link process. It seems this breaks linker
script defined symbols that use ADDR(), which previously worked fine in ld
2.32. Can this check be moved back into relocate_section instead of
check_relocs?

Test case attached, build with:
gcc test.c test.ldscript -fPIC -shared

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]