[Bug ld/9679] Linker doesn't merge visibility of weak symbol

2008-12-22 Thread hjl dot tools at gmail dot com

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

2008-12-22 Thread hjl dot tools at gmail dot com

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


[Bug ld/9679] Linker doesn't merge visibility of weak symbol

2009-01-02 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-01-02 
19:30 ---
Subject: Bug 9679

CVSROOT:/cvs/src
Module name:src
Changes by: h...@sourceware.org 2009-01-02 19:29:38

Modified files:
bfd: ChangeLog elflink.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: shared.exp 
Added files:
ld/testsuite/ld-elf: pr9679-1.c pr9679-2.c pr9679.rd 

Log message:
bfd/

2009-01-02  H.J. Lu  

PR ld/9679
* elflink.c (elf_merge_st_other): New.
(_bfd_elf_merge_symbol): Use it on skipped weak definitions and
hide them if needed.
(elf_link_add_object_symbols): Updated.

ld/testsuite/

2009-01-02  H.J. Lu  

PR ld/9679
* ld-elf/pr9679-1.c: New.
* ld-elf/pr9679-2.c: Likewise.
* ld-elf/pr9679.rd: Likewise.

* ld-elf/shared.exp (build_tests): Add test for libpr9679.so.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4407&r2=1.4408
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.321&r2=1.322
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1000&r2=1.1001
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr9679-1.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr9679-2.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr9679.rd.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/shared.exp.diff?cvsroot=src&r1=1.11&r2=1.12



-- 


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

2009-01-02 Thread hjl dot tools at gmail dot com

--- Additional Comments From hjl dot tools at gmail dot com  2009-01-02 
19:39 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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

2010-01-15 Thread hjl dot tools at gmail dot com


-- 
   What|Removed |Added

OtherBugsDependingO||11175
  nThis||


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