Riscv shared libraries should not export __global_pointer$.
[external/binutils.git] / ld / emulparams / elf64_s390.sh
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=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 NO_SMALL_DATA=yes
15 EXTRA_EM_FILE=s390
16 IREL_IN_PLT=
17
18 # Treat a host that matches the target with the possible exception of "x"
19 # in the name as if it were native.
20 if test `echo "$host" | sed -e s/390x/390/` \
21    = `echo "$target" | sed -e s/390x/390/`; then
22   case " $EMULATION_LIBPATH " in
23     *" ${EMULATION_NAME} "*)
24       NATIVE=yes
25   esac
26 fi
27
28 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first
29 # on Linux.
30 case "$target" in
31   s390*-linux*)
32     case "$EMULATION_NAME" in
33       *64*)
34         LIBPATH_SUFFIX=64 ;;
35     esac
36     ;;
37 esac