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]

ld patch for irix6


[Daniel, this is another last-minute plea for 2.14, sorry.]

Has anyone tried using gas with the native irix linker?  I was trying
to use them to bootstrap gcc, and although the boostrap itself went OK,
it produced invalid DSOs.

As far as I can tell, the problem was with gas's .pdr sections.
The linker knew that they weren't supposed to be loaded, but for
some reason it created dynamic relocations from .rela.pdr.  These
relocations had invalid addresses, so rld dumped core.

Anyway, I'm not trying to fix that here, but it encouraged me to try a
fully-gnu bootstrap.  The gnu linker seems to be in pretty good shape,
except that the n64 emulation doesn't have a default library search
path.  The patch below is an attempt to fix that.

Tested on mips-sgi-irix6.5.  OK to install?

Richard


	* configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
	to $targ_extra_libpath.

Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.130
diff -c -d -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.130 configure.tgt
*** ld/configure.tgt	10 Jun 2003 07:09:31 -0000	1.130
--- ld/configure.tgt	11 Jun 2003 18:15:20 -0000
*************** mips*-dec-osf*)		targ_emul=mipslit ;;
*** 387,392 ****
--- 387,393 ----
  mips*-sgi-irix5*)	targ_emul=elf32bsmip ;;
  mips*-sgi-irix6*)	targ_emul=elf32bmipn32
  	                targ_extra_emuls="elf32bsmip elf64bmip"
+ 			targ_extra_libpath=$targ_extra_emuls
  	                ;;
  mips*-sgi-irix*)	targ_emul=mipsbig ;;
  mips*el-*-ecoff*)	targ_emul=mipsidtl ;;


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