discard a weak symbol in object file

Wolfgang Haidinger Wolfgang.Haidinger@br-automation.com
Thu Jun 29 06:39:00 GMT 2006


Hi all,

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 weak symbol in an 
object  file, or how I can change it to be global and then delete it?

Grüße
Wolfgang Haidinger
---
Wolfgang Haidinger
B&R Industrie-Elektronik GmbH
BU Controls, Safety
Tel: +43 (0)7748 6586 1121
eMail: wolfgang dot haidinger at br-automation dotcom



More information about the Binutils mailing list