Weak symbols not being removed

Asm Twiddler asmtwiddler@gmail.com
Wed Jul 31 14:58:00 GMT 2013


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.



More information about the Gcc-help mailing list