This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[committed] Tweak o32 and n64 linker scripts for mips64-linux-gnu
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 08 Feb 2005 20:04:55 +0000
- Subject: [committed] Tweak o32 and n64 linker scripts for mips64-linux-gnu
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"