GNU Binutils with patches for OS216
Revisión | 3ffe58d945bfbafd5162eab54e101681854b9882 (tree) |
---|---|
Tiempo | 2002-10-23 07:13:26 |
Autor | Alexandre Oliva <aoliva@redh...> |
Commiter | Alexandre Oliva |
* 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.
@@ -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 | + | |
1 | 14 | 2002-10-17 Alexandre Oliva <aoliva@redhat.com> |
2 | 15 | |
3 | 16 | * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32. |
@@ -11,7 +11,28 @@ BIG_OUTPUT_FORMAT="elf32-bigmips" | ||
11 | 11 | LITTLE_OUTPUT_FORMAT="elf32-littlemips" |
12 | 12 | |
13 | 13 | 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 | |
15 | 36 | |
16 | 37 | GENERATE_SHLIB_SCRIPT=yes |
17 | 38 |
@@ -38,5 +38,6 @@ if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then | ||
38 | 38 | case "$EMULATION_NAME" in |
39 | 39 | *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH |
40 | 40 | esac |
41 | + ;; | |
41 | 42 | esac |
42 | 43 | fi |
@@ -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 |
@@ -1,4 +1,4 @@ | ||
1 | -. ${srcdir}/emulparams/elf64bmip-defs.sh | |
1 | +. ${srcdir}/emulparams/elf32bmipn32-defs.sh | |
2 | 2 | OUTPUT_FORMAT="elf64-bigmips" |
3 | 3 | BIG_OUTPUT_FORMAT="elf64-bigmips" |
4 | 4 | LITTLE_OUTPUT_FORMAT="elf64-littlemips" |
@@ -1,16 +1,11 @@ | ||
1 | 1 | # If you change this file, please also look at files which source this one: |
2 | 2 | # elf64ltsmip.sh |
3 | 3 | |
4 | -. ${srcdir}/emulparams/elf64bmip-defs.sh | |
4 | +. ${srcdir}/emulparams/elf32bmipn32-defs.sh | |
5 | 5 | OUTPUT_FORMAT="elf64-tradbigmips" |
6 | 6 | BIG_OUTPUT_FORMAT="elf64-tradbigmips" |
7 | 7 | LITTLE_OUTPUT_FORMAT="elf64-tradlittlemips" |
8 | 8 | |
9 | -DATA_ADDR=0x0400000000 | |
10 | -NONPAGED_TEXT_START_ADDR=0x10000000 | |
11 | -SHLIB_TEXT_START_ADDR=0 | |
12 | -TEXT_DYNAMIC= | |
13 | - | |
14 | 9 | # Magic sections. |
15 | 10 | INITIAL_READONLY_SECTIONS='.MIPS.options : { *(.MIPS.options) }' |
16 | 11 | OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)' |