* config.bfd (s390-*-linux*): Add targ64_selvecs.
[deliverable/binutils-gdb.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 LIB_PATH=${libdir}
20 for lib in ${NATIVE_LIB_DIRS}; do
21 case :${LIB_PATH}: in
22 *:${lib}:*) ;;
23 *) LIB_PATH=${LIB_PATH}:${lib} ;;
24 esac
25 done
26
27 case "$target" in
28 s390*-linux*)
29 suffix=64 ;;
30 esac
31
32 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
33 # on Linux.
34 if [ -n "$suffix" ]; then
35 case "$EMULATION_NAME" in
36 *64*)
37 LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,$suffix:,g`$LIB_PATH ;;
38 esac
39 fi ;;
40 esac
41 fi
This page took 0.031667 seconds and 5 git commands to generate.