bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/1811] ELF linker loads member of archive for common symbol


From: hjl at lucon dot org
Subject: [Bug ld/1811] ELF linker loads member of archive for common symbol
Date: 5 Nov 2005 15:13:36 -0000

------- Additional Comments From hjl at lucon dot org  2005-11-05 15:13 -------
Created an attachment (id=746)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=746&action=view)
A testcase

I think Solaris linker hehavior makes some senses. Kean, can you try
this testcase with your linker? I got

bash-3.00$ make
gcc    -c -o main.o main.c
gcc    -c -o define.o define.c
ar rv libtest.a define.o
ar: creating libtest.a
a - define.o
gcc -o main1 main.o libtest.a
gcc -o main2 main.o define.o
gcc -shared -o libtest.so define.o
gcc -o main3 main.o libtest.so -Wl,-rpath,.
./main1
3

./main2
3

./main3
3

It is very consistent.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1811

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]