This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GNU gcc ld script problem
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 02 Apr 2004 07:39:50 +0100
- Subject: Re: GNU gcc ld script problem
- References: <20040205181641.GA25051@nevyn.them.org><Pine.LNX.4.44.0402251120210.3059-100000@zcar.ghs.com><20040229215738.GA32679@nevyn.them.org><20040308202458.GA28949@nevyn.them.org> <87d67nxaeb.fsf@redhat.com><20040329183717.GA26296@nevyn.them.org>
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) \