bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21782] New: Fail to create static PIE with undefined weak symbol


From: hjl.tools at gmail dot com
Subject: [Bug ld/21782] New: Fail to create static PIE with undefined weak symbols
Date: Mon, 17 Jul 2017 18:11:20 +0000

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

            Bug ID: 21782
           Summary: Fail to create static PIE with undefined weak symbols
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

address@hidden ld]$ cat x.s
        .text
        .global _start
        .weak foo
_start:
        movl    foo(%rip), %eax
address@hidden ld]$ gcc -c x.s
address@hidden ld]$ ld -pie x.o
ld: x.o: relocation R_X86_64_PC32 against undefined symbol `foo' can not be
used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
address@hidden ld]$

-- 
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]