discard a weak symbol in object file

Ian Lance Taylor iant@google.com
Wed Jun 28 19:37:00 GMT 2006


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



More information about the Gcc-help mailing list