[Bug ld/9679] New: Linker doesn't merge visibility of weak symbol
Linker doesn't merge symbol visibility if it is weak and overridden. -- Summary: Linker doesn't merge visibility of weak symbol Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org,pluto at agmk dot net 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/9679] Linker doesn't merge visibility of weak symbol
--- 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 [...@gnu-6 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/9679] Linker doesn't merge visibility of weak symbol
--- Additional Comments From hjl dot tools at gmail dot com 2008-12-22 18:28 --- A patch is posted at http://sourceware.org/ml/binutils/2008-12/msg00241.html -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils