This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: using objcopy --redefine-sym
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Wagner Toledo Correa <wtcorrea at CS dot Princeton dot EDU>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 26 Aug 2003 11:17:17 +0930
- Subject: Re: using objcopy --redefine-sym
- References: <3F4A1A10.9040308@cs.princeton.edu>
You can't do anything in the linker. It's too late, since "hello" is
a final linked executable. You may be able to play some tricks in
the dynamic linker, assuming "hello" is dynamically linked.
Investigate LD_PRELOAD.
--
Alan Modra
IBM OzLabs - Linux Technology Centre