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: GNU gcc ld script problem


On Fri, Apr 02, 2004 at 07:39:50AM +0100, Richard Sandiford wrote:
> 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.

Thanks, Richard.  Eric or Thiemo, is this patch OK then?

[I have not actually built a MIPS GNU/Linux userspace with this patch. 
I should do that.  I need to polish off my build scripts.]

> > 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) \
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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