This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: discard a weak symbol in object file


Wolfgang Haidinger <Wolfgang.Haidinger@br-automation.com> writes:

> I tired to remove a local symbol in an .o file by the use of:
> arm-elf-objcopy -N <symbol-name> infile.o outfile.o
> 
> This works fine as long as the symbol is global (not weak nor local).
> Unfortunately objcopy provides just the conversion of symbols into weak or 
> local, but no option to convert into global.
> 
> Has anyone an idea how I can get rid of an unwanted symbol in an object 
> file, or how I can change it to be global?

I don't know whether there is a way, but I do know that the place to
ask is not here, but at binutils@sourceware.org; see
http://sourceware.org/binutils/

Ian


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