[PATCH] ld --dynamic-list=
James Lemke
jwlemke@codesourcery.com
Mon Oct 29 16:49:00 GMT 2012
I recently had a customer complaint about building an ELF executable that
exports entry points. They used --dynamic-list=$file to specify the names
for export. To make that work they also had to specify -u for each name
and make a reference to each name in their code.
It seems wrong that they have to make a call to a symbol in order to have
it exported.
It seems wrong that names specified by --dynamic-list= don't create an
undefined reference (as per -u).
My solution is attached. There is no functional change for building shared
objects. Only for using --dynamic-list when building executables.
Tested & bootstrapped on x86_64-unknown-linux-gnu
Also tested on a MIPS target.
Comments?
--
Jim Lemke
Mentor Graphics / CodeSourcery
Orillia Ontario, +1-613-963-1073
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bu-contrib-1029b.diff
Type: text/x-patch
Size: 4709 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20121029/ed322982/attachment.bin>
More information about the Binutils
mailing list