bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21964] __start_SCN symbols aren't exported anymore


From: matz at suse dot de
Subject: [Bug ld/21964] __start_SCN symbols aren't exported anymore
Date: Mon, 14 Aug 2017 17:33:19 +0000

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

--- Comment #6 from Michael Matz <matz at suse dot de> ---
Created attachment 10354
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10354&action=edit
tarball with testcase

Here is one.  Unlike libqb it's not using dl_iterate_phdr and then dlopen with
the known name to get the shared lib, but instead dlopen directly, but that
doesn't matter here.

It's supposed to be extracted inside the binutils build directory, it calls
../ld/ld-new directly.  I.e.:

% cd build
% tar xvf orphan.tar.gz && cd orphan
% make
gcc -o app app.c -ldl
gcc -c -fPIC -o lib.o lib.c
/usr/bin/ld -shared -o liborphan.so lib.o
./app && echo okay
okay
../ld/ld-new -shared -o liborphan.so lib.o
./app
can't find __start___verbose
make: *** [failing] Error 2
% 

The above happens when the system /usr/bin/ld is still pre-2.29.  With the
patch
it's:

% make
/usr/bin/ld -shared -o liborphan.so lib.o
./app && echo okay
okay
../ld/ld-new -shared -o liborphan.so lib.o
./app
%

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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