This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ld --dynamic-list=


Ping..

On 10/29/2012 12:49 PM, James Lemke wrote:
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]