This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GNU gcc ld script problem
- From: Daniel Jacobowitz <drow at false dot org>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 29 Mar 2004 13:37:17 -0500
- 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>
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 Jacobowitz
MontaVista Software Debian GNU/Linux Developer
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) \