[committed] Tweak o32 and n64 linker scripts for mips64-linux-gnu

Richard Sandiford rsandifo@redhat.com
Wed Feb 9 00:01:00 GMT 2005


Daniel recently stopped mips64*-linux-gnu gccs from passing hard-coded
-rpath-link options down to ld.  This showed up the fact that a
sysroot-configured linker didn't add the expected SEARCH_DIR()
entries to the standard o32 and n64 scripts, thus causing DT_NEEDED
lookups to fail.

Fixed by the patch below, which was tested using a "make world"
build with a mips64-linux-gnu-gcc cross (and by inspection
with a mips64el-linux-gnu cross).  Installed as obvious.

Richard


	* configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
	to include o32 and n64 emulations.
	(mips64*-*-linux-gnu*): Likewise.

Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.163
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.163 configure.tgt
*** ld/configure.tgt	20 Jan 2005 19:37:49 -0000	1.163
--- ld/configure.tgt	8 Feb 2005 19:45:02 -0000
*************** mips*-*-vxworks*)	targ_emul=elf32ebmip
*** 440,448 ****
--- 440,450 ----
  mips*-*-windiss)	targ_emul=elf32mipswindiss ;;
  mips64*el-*-linux-gnu*)	targ_emul=elf32ltsmipn32
  			targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
+ 			targ_extra_libpath="elf32ltsmip elf64ltsmip"
  			;;
  mips64*-*-linux-gnu*)	targ_emul=elf32btsmipn32
  			targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
+ 			targ_extra_libpath="elf32btsmip elf64btsmip"
  			;;
  mips*el-*-linux-gnu*)	targ_emul=elf32ltsmip
  			targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"



More information about the Binutils mailing list