[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/9679] Linker doesn't merge visibility of weak symbol
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug ld/9679] Linker doesn't merge visibility of weak symbol |
Date: |
22 Dec 2008 17:45:24 -0000 |
------- Additional Comments From hjl dot tools at gmail dot com 2008-12-22
17:45 -------
Created an attachment (id=3622)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3622&action=view)
A testcase
cc -fPIC -c -o foo.o foo.c
cc -fPIC -c -o bar.o bar.c
./ld -shared -o libx.so foo.o bar.o
./ld: bar.o: relocation R_X86_64_PC32 against symbol `foo' can not be used when
making a shared object; recompile with -fPIC
./ld: final link failed: Bad value
make: *** [libx.so] Error 1
address@hidden 9676-3]$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9679
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.