This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: combining object files and managing relocatable symbols
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Erik Leunissen <e dot leunissen at hccnet dot nl>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 20 Sep 2006 15:32:42 -0700
- Subject: Re: combining object files and managing relocatable symbols
- References: <45119D83.5020002@hccnet.nl> <4511BE70.6090805@hccnet.nl>
On Thu, Sep 21, 2006 at 12:19:28AM +0200, Erik Leunissen wrote:
> Indeed, using:
>
> objcopy --localize-symbol=X C.o
>
> did what I wanted. Symbol X is now local to C.o and resides in the text
> section.
>
> Would it be possible to take this process one step further:
> not only localize the symbol, but make it invisible altogether?
>
> I expected "objcopy -x and -X" to do exactly that, but it did not. Can
> anybody tell why?
>
You need to do it in 2 steps, -L and then -x. You can open a bug
report at
http://www.sourceware.org/bugzilla/
to request that "-L foo -x" will remove foo in one step.
H.J.