xref: /netbsd-src/external/gpl3/binutils/dist/ld/emulparams/elf64_s390.sh (revision 22ebeae4b2252475e0ebe332f69734639cb946ea)
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
20SYMBOL_ABI_ALIGNMENT=2
21
22# Treat a host that matches the target with the possible exception of "x"
23# in the name as if it were native.
24if test `echo "$host" | sed -e s/390x/390/` \
25   = `echo "$target" | sed -e s/390x/390/`; then
26  case " $EMULATION_LIBPATH " in
27    *" ${EMULATION_NAME} "*)
28      NATIVE=yes
29  esac
30fi
31
32# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
33# on Linux.
34case "$target" in
35  s390*-linux*)
36    case "$EMULATION_NAME" in
37      *64*)
38	LIBPATH_SUFFIX=64 ;;
39    esac
40    ;;
41esac
42