public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [committed] Tweak o32 and n64 linker scripts for mips64-linux-gnu
@ 2005-02-09  0:01 Richard Sandiford
  0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2005-02-09  0:01 UTC (permalink / raw)
  To: binutils

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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-08 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09  0:01 [committed] Tweak o32 and n64 linker scripts for mips64-linux-gnu Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).