* emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
[external/binutils.git] / ld / emulparams / elf64_s390.sh
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-s390"
4 TEXT_START_ADDR=0x80000000
5 MAXPAGESIZE=0x1000
6 NONPAGED_TEXT_START_ADDR=0x80000000
7 ARCH="s390:64-bit"
8 MACHINE=
9 NOP=0x07070707
10 TEMPLATE_NAME=elf32
11 GENERATE_SHLIB_SCRIPT=yes 
12
13 # Treat a host that matches the target with the possible exception of "x"
14 # in the name as if it were native.
15 if test `echo "$host" | sed -e s/390x/390/` \
16    = `echo "$target" | sed -e s/390x/390/`; then
17   case " $EMULATION_LIBPATH " in
18     *" ${EMULATION_NAME} "*)
19       NATIVE=yes
20   esac
21 fi
22
23 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
24 # on Linux.
25 case "$target" in
26   s390*-linux*)
27     case "$EMULATION_NAME" in
28       *64*)
29         LIBPATH_SUFFIX=64 ;;
30     esac
31     ;;
32 esac