Don't use "_gp" on RISC-V, use "_global_pointer$" instead
[deliverable/binutils-gdb.git] / ld / emulparams / elf_x86_64.sh
CommitLineData
fb42df5e 1. ${srcdir}/emulparams/plt_unwind.sh
889c2a67 2. ${srcdir}/emulparams/extern_protected_data.sh
aec6b87e 3. ${srcdir}/emulparams/dynamic_undefined_weak.sh
4c10bbaa 4. ${srcdir}/emulparams/reloc_overflow.sh
caa65211 5. ${srcdir}/emulparams/call_nop.sh
2be3aa03
NC
6SCRIPT_NAME=elf
7ELFSIZE=64
8OUTPUT_FORMAT="elf64-x86-64"
d9689752 9CHECK_RELOCS_AFTER_OPEN_INPUT=yes
485cf679 10NO_REL_RELOCS=yes
8f3aa7a0 11TEXT_START_ADDR=0x400000
24718e3b
L
12MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
13COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
beb43bb9 14ARCH="i386:x86-64"
2be3aa03 15MACHINE=
2be3aa03
NC
16TEMPLATE_NAME=elf32
17GENERATE_SHLIB_SCRIPT=yes
36af4a4e 18GENERATE_PIE_SCRIPT=yes
48459341 19NO_SMALL_DATA=yes
9599dfb1 20LARGE_SECTIONS=yes
134960cc 21LARGE_BSS_AFTER_BSS=
17d6eea5 22SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
8dfab6dd 23IREL_IN_PLT=
0ff2b86e 24# Reuse TINY_READONLY_SECTION which is placed right after .plt section.
dd7e64d4
L
25TINY_READONLY_SECTION="
26.plt.got ${RELOCATING-0} : { *(.plt.got) }
27.plt.bnd ${RELOCATING-0} : { *(.plt.bnd) }
28"
beb43bb9
JH
29
30if [ "x${host}" = "x${target}" ]; then
31 case " $EMULATION_LIBPATH " in
32 *" ${EMULATION_NAME} "*)
9c8ebd6a 33 NATIVE=yes
beb43bb9
JH
34 esac
35fi
9c8ebd6a 36
ff15b240 37# Linux/Solaris modify the default library search path to first include
9c8ebd6a
DJ
38# a 64-bit specific directory.
39case "$target" in
e4818e07 40 x86_64*-linux*|i[3-7]86-*-linux-*)
9c8ebd6a 41 case "$EMULATION_NAME" in
d258b828
IZ
42 *64*)
43 LIBPATH_SUFFIX=64
889c2a67 44 PARSE_AND_LIST_OPTIONS_BNDPLT='
eba27bd7
L
45 fprintf (file, _("\
46 -z bndplt Always generate BND prefix in PLT entries\n"));
47'
889c2a67 48 PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT='
eba27bd7
L
49 else if (strcmp (optarg, "bndplt") == 0)
50 link_info.bndplt = TRUE;
51'
889c2a67
L
52 PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_BNDPLT"
53 PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT"
d258b828 54 ;;
9c8ebd6a
DJ
55 esac
56 ;;
e4492aa0 57 *-*-solaris2*)
ff15b240
NC
58 LIBPATH_SUFFIX=/amd64
59 ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
60 ;;
9c8ebd6a 61esac
This page took 0.766272 seconds and 4 git commands to generate.