From: Jakub Jelinek Date: Fri, 20 Oct 2000 10:58:32 +0000 (+0000) Subject: * emulparams/elf64_sparc.sh (TEXT_START_ADDR, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=645571e1077568b1874b06132eb458031ee6fb0d;p=binutils-gdb.git * emulparams/elf64_sparc.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets. Fix sed invocation, so that it coped with '/' in Solaris 64bit library path suffix. Based on patch by Andrew Macleod . --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 7642244b677..65b74686d5f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2000-10-20 Jakub Jelinek + + * emulparams/elf64_sparc.sh (TEXT_START_ADDR, + NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets. + Fix sed invocation, so that it coped with '/' in Solaris 64bit + library path suffix. + Based on patch by Andrew Macleod . + 2000-10-18 Hans-Peter Nilsson * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32), diff --git a/ld/emulparams/elf64_sparc.sh b/ld/emulparams/elf64_sparc.sh index 2ab2e4fabb9..b0a58eadcb7 100644 --- a/ld/emulparams/elf64_sparc.sh +++ b/ld/emulparams/elf64_sparc.sh @@ -2,15 +2,24 @@ SCRIPT_NAME=elf ELFSIZE=64 TEMPLATE_NAME=elf32 OUTPUT_FORMAT="elf64-sparc" -TEXT_START_ADDR=0x100000 MAXPAGESIZE=0x100000 -NONPAGED_TEXT_START_ADDR=0x100000 ARCH="sparc:v9" MACHINE= DATA_PLT= GENERATE_SHLIB_SCRIPT=yes NOP=0x01000000 +case "$target" in + sparc*-solaris*) + TEXT_START_ADDR=0x100000000 + NONPAGED_TEXT_START_ADDR=0x100000000 + ;; + *) + TEXT_START_ADDR=0x100000 + NONPAGED_TEXT_START_ADDR=0x100000 + ;; +esac + if [ "x${host}" = "x${target}" ]; then case " $EMULATION_LIBPATH " in *" ${EMULATION_NAME} "*) @@ -31,7 +40,7 @@ if [ "x${host}" = "x${target}" ]; then LIB_PATH=/lib${suffix}:/lib LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib if [ -n "${NATIVE_LIB_DIRS}" ]; then - LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s/:/${suffix}:/g`${suffix}:${NATIVE_LIB_DIRS} + LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS} fi if [ "${libdir}" != /usr/lib ]; then LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}