This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix --as-needed for MIPS.
- From: Thiemo Seufer <ths at networkno dot de>
- To: David Daney <ddaney at avtrex dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 29 Jul 2005 11:09:53 +0200
- Subject: Re: [PATCH] Fix --as-needed for MIPS.
- References: <42E9AE1C.6040505@avtrex.com>
David Daney wrote:
[snip]
> + /* Shared objects may have a dynamic symbol '_gp_disp' defined as
> + a SECTION *ABS*. This causes ld to think it can resolve _gp_disp
> + by setting a DT_NEEDED for the shared object. Since _gp_disp is
> + a magic symbol resolved by the linker, we ignore this bogus definition
> + of _gp_disp. */
> + if ((strcmp (*namep, "_gp_disp") == 0) && !bfd_is_und_section (*secp))
> + {
> + *namep = NULL;
> + return TRUE;
> + }
This should be limited to OldABI objects, for N32/N64 _gp_disp is not
a magic symbol.
Thiemo