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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to