GNU gcc ld script problem
Richard Sandiford
rsandifo@redhat.com
Fri Apr 2 06:39:00 GMT 2004
Daniel Jacobowitz <drow@false.org> writes:
> On Mon, Mar 08, 2004 at 10:05:16PM +0000, Richard Sandiford wrote:
>> Daniel Jacobowitz <drow@mvista.com> writes:
>> > Hey Richard, resident IRIX sucker..... *duck*
>> >
>> > Do you have any comments on this? I just ran into yet another problem
>> > in GDB that would be fixed by keeping the lazy loading stubs out of
>> > .text.
>>
>> Is this just an o32 problem? I think stubs are already put
>> into .MIPS.stubs for n32 and n64.
>>
>> If so, I don't know of any reason not to do it for o32 as well.
>> It looks like the o32 MIPSpro tools do this.
>
> Like this? I can't see any reason this wouldn't work, unless somehow
> it chokes MIPSpro, and from what you said that sounds unlikely.
Daniel, sorry for the slow response. The IRIX 6 box I use has been
out of action recently.
I put your patch through a gcc bootstrap (just as a basic sanity check)
and there were no problems with the -mabi=32 multilibs. The native linker
segfaults if you try to link against a GNU-ld-generated DSO, but the same
happens before the patch as well. Hope to look into it soon.
So this looks good from an IRIX POV.
Richard
> 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
>
> * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
> ".MIPS.stubs".
>
> Index: elfxx-mips.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
> retrieving revision 1.96
> diff -u -p -r1.96 elfxx-mips.c
> --- elfxx-mips.c 27 Mar 2004 10:58:07 -0000 1.96
> +++ elfxx-mips.c 29 Mar 2004 18:29:50 -0000
> @@ -530,8 +530,7 @@ static bfd *reldyn_sorting_bfd;
> (NEWABI_P (abfd) ? ".MIPS.options" : ".options")
>
> /* The name of the stub section. */
> -#define MIPS_ELF_STUB_SECTION_NAME(abfd) \
> - (NEWABI_P (abfd) ? ".MIPS.stubs" : ".stub")
> +#define MIPS_ELF_STUB_SECTION_NAME(abfd) ".MIPS.stubs"
>
> /* The size of an external REL relocation. */
> #define MIPS_ELF_REL_SIZE(abfd) \
More information about the Binutils
mailing list