This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Weak symbols not being removed
- From: Andrew Haley <aph at redhat dot com>
- To: Asm Twiddler <asmtwiddler at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 31 Jul 2013 09:13:57 +0100
- Subject: Re: Weak symbols not being removed
- References: <CAFqBspiUayKHb1LDsOJMf_nACxty3c2CcusfCB2VOgcU+gdD=g at mail dot gmail dot com>
On 07/31/2013 06:25 AM, Asm Twiddler wrote:
> 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.
Where is the strong object? In a shared library?
BTW, this is really a question for the binutils list. GCC doesn't
process weak symbols. You'll get more knowledgeable people there.
Andrew.