xref: /netbsd-src/external/gpl3/binutils.old/dist/ld/emulparams/elf64_s390.sh (revision 012573eb9c67269c00ce646144eea16daceeb465)
1SCRIPT_NAME=elf
2ELFSIZE=64
3OUTPUT_FORMAT="elf64-s390"
4NO_REL_RELOCS=yes
5TEXT_START_ADDR=0x1000000
6MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
7COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
8ARCH="s390:64-bit"
9MACHINE=
10NOP=0x07070707
11TEMPLATE_NAME=elf
12GENERATE_SHLIB_SCRIPT=yes
13GENERATE_PIE_SCRIPT=yes
14GENERATE_RELRO_SCRIPT=yes
15NO_SMALL_DATA=yes
16EXTRA_EM_FILE=s390
17IREL_IN_PLT=
18SEPARATE_GOTPLT=0
19test -z "$RELRO" && unset SEPARATE_GOTPLT
20
21# Treat a host that matches the target with the possible exception of "x"
22# in the name as if it were native.
23if test `echo "$host" | sed -e s/390x/390/` \
24   = `echo "$target" | sed -e s/390x/390/`; then
25  case " $EMULATION_LIBPATH " in
26    *" ${EMULATION_NAME} "*)
27      NATIVE=yes
28  esac
29fi
30
31# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
32# on Linux.
33case "$target" in
34  s390*-linux*)
35    case "$EMULATION_NAME" in
36      *64*)
37	LIBPATH_SUFFIX=64 ;;
38    esac
39    ;;
40esac
41