|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/12248] BFD linker plugin failed to resolve reference to archive |
Date: | Tue, 23 Nov 2010 23:39:07 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12248 --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-23 23:39:05 UTC --- Created attachment 5136 --> http://sourceware.org/bugzilla/attachment.cgi?id=5136 A new testcase -pass-through is a hack, not a real solution. Here is a testcase where __udivdi3 in div.c should override the one in libgcc.a: address@hidden pr12245-2]$ make /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin -c -o y.o y.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin -c -o x.o x.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -c -o div.o div.c ar rv libdiv.a div.o r - div.o /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -B./ -o foo -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin y.o x.o libdiv.a ./foo 2145852098 make: *** [all] Aborted address@hidden pr12245-2]$ make clean rm -f *.o foo a.out address@hidden pr12245-2]$ make CFLAGS=-O3 /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o y.o y.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o x.o x.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o div.o div.c ar rv libdiv.a div.o r - div.o /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -B./ -o foo -O3 y.o x.o libdiv.a ./foo 1 address@hidden pr12245-2]$ -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |