https://sourceware.org/bugzilla/show_bug.cgi?id=21964

--- Comment #10 from Michael Matz <matz at suse dot de> ---
Created attachment 10356
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10356&action=edit
another testcase showing unpatched binutils broken

Like with this new testcase.  The difference
is that with this the shared library is build with installed tools (for me old
binutils and gcc, i.e. simulating binary libs people will have installed from
their distro), but the app itself is linked with new linker.

With unpatched binutils (2.29 branch, but shouldn't matter):

% make
cc -g   -c -o app.o app.c
cc -g -fPIC   -c -o lib.o lib.c
cc -shared -o liborphan.so lib.o
ln -sf ../ld/ld-new ld
cc -B./ -o app app.o liborphan.so -ldl -Wl,-R,.
./ld: warning: type and size of dynamic symbol `__stop___verbose' are not
defined
./ld: warning: type and size of dynamic symbol `__start___verbose' are not
defined
./app
main: wrong __start___verbose
make: *** [all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to