bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/17847] New: Confusing linker error message


From: hjl.tools at gmail dot com
Subject: [Bug ld/17847] New: Confusing linker error message
Date: Thu, 15 Jan 2015 17:14:09 +0000

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

            Bug ID: 17847
           Summary: Confusing linker error message
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

address@hidden pie-6]$ cat x.S
    .text
    .global _start
_start:
    movl    foo(%rip), %eax
address@hidden pie-6]$ make
gcc -B./    -c -o x.o x.S
./ld -o x -pie x.o
x.o: In function `_start':
(.text+0x2): undefined reference to `foo'
./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
make: *** [x] Error 1
address@hidden pie-6]$ 

Since foo is undefined, the second error message is confusing.

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