This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix --as-needed for MIPS.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]