I was found a stupid bug in ld ( in 2.17 version ). I had a file, for example,
m0.o and I try linking it:
ld -s --shared m0.o
And I'll receive this results:
ld: m0.o: relocation R_X86_64_PC32 against `ver_buf' can not be used when making
a shared object; recompile with -fPIC
ld: final link failed: Bad value
But when I try to linking this file old version ( 2.15 ) it successfull.
What the problem in ld 2.17 on x86_64?
P.S. and I complinig this file as, not gcc!
--
Summary: ld 2.17 bug ( relocation R_X86_64_PC32 )
Product: binutils
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: aliens_predator at inbox dot ru
CC: bug-binutils at gnu dot org
GCC build triplet: 2.17
GCC host triplet: RedHat Linux 64
http://sourceware.org/bugzilla/show_bug.cgi?id=3149
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils