[Bug ld/3149] New: ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-30 Thread aliens_predator at inbox dot ru
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:

[Bug ld/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-30 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-08-30 14:54 --- ver_buf is a global symbol which can be overridden by another one at run time and may lead to relocation overflow. The old linker doesn't detect it and you get a run-time error. See http://sources.redhat.com/bugzilla/

[Bug ld/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-30 Thread aliens_predator at inbox dot ru
--- Additional Comments From aliens_predator at inbox dot ru 2006-08-30 16:43 --- And how i solve this problem? I should to linking this file! :( -- http://sourceware.org/bugzilla/show_bug.cgi?id=3149 --- You are receiving this mail because: --- You are on the CC list for th

[Bug ld/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-30 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-08-31 02:53 --- You need to compile your shared library with -fPIC. -- 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 s

[Bug ld/3149] ld 2.17 bug ( relocation R_X86_64_PC32 )

2006-08-30 Thread aliens_predator at inbox dot ru
--- Additional Comments From aliens_predator at inbox dot ru 2006-08-31 06:11 --- Has as this option? Why is it not documented? -- 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 watc