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