* emulparams/elf64_sparc.sh (TEXT_START_ADDR,
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Oct 2000 10:58:32 +0000 (10:58 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 20 Oct 2000 10:58:32 +0000 (10:58 +0000)
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 <amacleod@cygnus.com>.

ld/ChangeLog
ld/emulparams/elf64_sparc.sh

index 7642244b677fae790d92b7132cf222c019d6c3b6..65b74686d5fda1d2fbd56dc2837f6cb063f39c05 100644 (file)
@@ -1,3 +1,11 @@
+2000-10-20  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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 <amacleod@cygnus.com>.
+
 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
 
        * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
index 2ab2e4fabb9dfa306d9f9fd785671a81bddb5ae3..b0a58eadcb7d34a6ef8bc107c02b02c0891b80d9 100644 (file)
@@ -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}