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: combining object files and managing relocatable symbols


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.


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