merge from gcc
[binutils.git] / ld / emulparams / elf64_s390.sh
blobea75d319838b4a43f90778479c3d2721a74cd137
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-s390"
4 TEXT_START_ADDR=0x80000000
5 MAXPAGESIZE=0x1000
6 COMMONPAGESIZE=0x1000
7 NONPAGED_TEXT_START_ADDR=0x80000000
8 ARCH="s390:64-bit"
9 MACHINE=
10 NOP=0x07070707
11 TEMPLATE_NAME=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 NO_SMALL_DATA=yes
16 # Treat a host that matches the target with the possible exception of "x"
17 # in the name as if it were native.
18 if 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
26 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
27 # on Linux.
28 case "$target" in
29 s390*-linux*)
30 case "$EMULATION_NAME" in
31 *64*)
32 LIBPATH_SUFFIX=64 ;;
33 esac
35 esac