------- Additional Comments From hjl dot tools at gmail dot com  2010-01-25 
14:26 -------
Created an attachment (id=4554)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4554&action=view)
A testcase

[...@gnu-6 gc-2]$ make
gcc -B./ -c -o main.o main.c
gcc -B./ -c -ffunction-sections -o a.o a.c
gcc -B./ -o so.so -shared -fPIC so.c
gcc -B./ -o main main.o a.o so.so -Wl,--gc-sections,-rpath,./
gcc -B./ -o foo main.o a.o so.so -Wl,-rpath,./
a.o: In function `call_unresolved':
a.c:(.text.call_unresolved+0xa): undefined reference to
`unresolved_detected_at_runtime_not_at_linktime'
collect2: ld returned 1 exit status
make: *** [foo] Error 1
[...@gnu-6 gc-2]$ ./main
./main: symbol lookup error: ./so.so: undefined symbol:
unresolved_detected_at_runtime_not_at_linktime
[...@gnu-6 gc-2]$ 

-- 


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

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