This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Weak symbols not being removed
- From: Asm Twiddler <asmtwiddler at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 31 Jul 2013 01:25:33 -0400
- Subject: Weak symbols not being removed
Hello all,
I have recently noticed that my builds haven't been removing weak
symbols that are overridden by strong symbols.
More specifically, the symbol points to the strong object/function but
the weak symbol's data remains in the executable.
This is fairly inconvenient as some of the symbols are quite large and
take up a lot of space.
I'm just wondering is this supposed to happen, and if so how do I remove it?
I'm writing the program for the AVR, but I've also noticed it occurs for x86.
Thanks for any help.