This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
discard a weak symbol in object file
- From: Wolfgang Haidinger <Wolfgang dot Haidinger at br-automation dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 28 Jun 2006 10:01:57 +0200
- Subject: discard a weak symbol in object file
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 symbol in an object
file, or how I can change it to be global?
Thanks a lot & 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 dot com