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


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