Automatic date update in version.in
[binutils-gdb.git] / ld / emulparams / elf64_s390.sh
blobd0a2a59a0926932ce74f650cedb948f5d3774b94
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-s390"
4 NO_REL_RELOCS=yes
5 TEXT_START_ADDR=0x1000000
6 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
7 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
8 ARCH="s390:64-bit"
9 MACHINE=
10 NOP=0x07070707
11 TEMPLATE_NAME=elf
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 GENERATE_RELRO_SCRIPT=yes
15 NO_SMALL_DATA=yes
16 EXTRA_EM_FILE=s390
17 IREL_IN_PLT=
18 SEPARATE_GOTPLT=0
19 test -z "$RELRO" && unset SEPARATE_GOTPLT
20 SYMBOL_ABI_ALIGNMENT=2
22 # Treat a host that matches the target with the possible exception of "x"
23 # in the name as if it were native.
24 if 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
32 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
33 # on Linux.
34 case "$target" in
35 s390*-linux*)
36 case "$EMULATION_NAME" in
37 *64*)
38 LIBPATH_SUFFIX=64 ;;
39 esac
41 esac