• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisión3ffe58d945bfbafd5162eab54e101681854b9882 (tree)
Tiempo2002-10-23 07:13:26
AutorAlexandre Oliva <aoliva@redh...>
CommiterAlexandre Oliva

Log Message

* emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
emulation name. Set LIB_PATH only for native tools, and
search the ABI-specific versions of NATIVE_LIB_DIRS before the
.../lib variants, not instead of them. Mostly copied from...
* emulparams/elf32ppc.sh: ... here. Fixed typo.
* emulparams/elf64bmip-defs.sh: Backed out.
* emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
* emulparams/elf64btsmip.sh: Likewise.
(DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
TEXT_DYNAMIC): Removed.

Cambiar Resumen

Diferencia incremental

--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,16 @@
1+2002-10-22 Alexandre Oliva <aoliva@redhat.com>
2+
3+ * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
4+ emulation name. Set LIB_PATH only for native tools, and
5+ search the ABI-specific versions of NATIVE_LIB_DIRS before the
6+ .../lib variants, not instead of them. Mostly copied from...
7+ * emulparams/elf32ppc.sh: ... here. Fixed typo.
8+ * emulparams/elf64bmip-defs.sh: Backed out.
9+ * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
10+ * emulparams/elf64btsmip.sh: Likewise.
11+ (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
12+ TEXT_DYNAMIC): Removed.
13+
114 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
215
316 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
--- a/ld/emulparams/elf32bmipn32-defs.sh
+++ b/ld/emulparams/elf32bmipn32-defs.sh
@@ -11,7 +11,28 @@ BIG_OUTPUT_FORMAT="elf32-bigmips"
1111 LITTLE_OUTPUT_FORMAT="elf32-littlemips"
1212
1313 TEMPLATE_NAME=elf32
14-LIB_PATH=/usr/lib32
14+
15+case "$EMULATION_NAME" in
16+elf32*n32*) ELFSIZE=32 ;;
17+elf64*) ELFSIZE=64 ;;
18+*) echo $0: unhandled emulation $EMULATION_NAME >&2; exit 1 ;;
19+esac
20+
21+if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
22+ case " $EMULATION_LIBPATH " in
23+ *" ${EMULATION_NAME} "*)
24+ LIB_PATH=${libdir}
25+ for lib in ${NATIVE_LIB_DIRS}; do
26+ case :${LIB_PATH}: in
27+ *:${lib}:*) ;;
28+ *) LIB_PATH=${LIB_PATH}:${lib} ;;
29+ esac
30+ done
31+ # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
32+ LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,$ELFSIZE:,g`$LIB_PATH
33+ ;;
34+ esac
35+fi
1536
1637 GENERATE_SHLIB_SCRIPT=yes
1738
--- a/ld/emulparams/elf32ppc.sh
+++ b/ld/emulparams/elf32ppc.sh
@@ -38,5 +38,6 @@ if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
3838 case "$EMULATION_NAME" in
3939 *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
4040 esac
41+ ;;
4142 esac
4243 fi
--- a/ld/emulparams/elf64bmip-defs.sh
+++ /dev/null
@@ -1,6 +0,0 @@
1-# If you change this file, please also look at files which source this one:
2-# elf64bmip.sh and elf64btsmip.sh
3-
4-. ${srcdir}/emulparams/elf32bmipn32-defs.sh
5-ELFSIZE=64
6-LIB_PATH=/usr/lib64
--- a/ld/emulparams/elf64bmip.sh
+++ b/ld/emulparams/elf64bmip.sh
@@ -1,4 +1,4 @@
1-. ${srcdir}/emulparams/elf64bmip-defs.sh
1+. ${srcdir}/emulparams/elf32bmipn32-defs.sh
22 OUTPUT_FORMAT="elf64-bigmips"
33 BIG_OUTPUT_FORMAT="elf64-bigmips"
44 LITTLE_OUTPUT_FORMAT="elf64-littlemips"
--- a/ld/emulparams/elf64btsmip.sh
+++ b/ld/emulparams/elf64btsmip.sh
@@ -1,16 +1,11 @@
11 # If you change this file, please also look at files which source this one:
22 # elf64ltsmip.sh
33
4-. ${srcdir}/emulparams/elf64bmip-defs.sh
4+. ${srcdir}/emulparams/elf32bmipn32-defs.sh
55 OUTPUT_FORMAT="elf64-tradbigmips"
66 BIG_OUTPUT_FORMAT="elf64-tradbigmips"
77 LITTLE_OUTPUT_FORMAT="elf64-tradlittlemips"
88
9-DATA_ADDR=0x0400000000
10-NONPAGED_TEXT_START_ADDR=0x10000000
11-SHLIB_TEXT_START_ADDR=0
12-TEXT_DYNAMIC=
13-
149 # Magic sections.
1510 INITIAL_READONLY_SECTIONS='.MIPS.options : { *(.MIPS.options) }'
1611 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'