Update copyright year range in gdb.texinfo and refcard.tex
[binutils-gdb.git] / ld / emulparams / elf_x86_64.sh
blobd8c6e54894c0d8fbada96bfe2089746ac93130ff
1 . ${srcdir}/emulparams/plt_unwind.sh
2 . ${srcdir}/emulparams/extern_protected_data.sh
3 . ${srcdir}/emulparams/dynamic_undefined_weak.sh
4 . ${srcdir}/emulparams/reloc_overflow.sh
5 . ${srcdir}/emulparams/call_nop.sh
6 . ${srcdir}/emulparams/cet.sh
7 SCRIPT_NAME=elf
8 ELFSIZE=64
9 OUTPUT_FORMAT="elf64-x86-64"
10 NO_REL_RELOCS=yes
11 TEXT_START_ADDR=0x400000
12 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
13 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
14 ARCH="i386:x86-64"
15 MACHINE=
16 TEMPLATE_NAME=elf32
17 GENERATE_SHLIB_SCRIPT=yes
18 GENERATE_PIE_SCRIPT=yes
19 NO_SMALL_DATA=yes
20 LARGE_SECTIONS=yes
21 LARGE_BSS_AFTER_BSS=
22 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
23 IREL_IN_PLT=
24 # These sections are placed right after .plt section.
25 OTHER_PLT_SECTIONS="
26 .plt.got ${RELOCATING-0} : { *(.plt.got) }
27 .plt.sec ${RELOCATING-0} : { *(.plt.sec) }
30 if [ "x${host}" = "x${target}" ]; then
31 case " $EMULATION_LIBPATH " in
32 *" ${EMULATION_NAME} "*)
33 NATIVE=yes
34 esac
37 # Linux/Solaris modify the default library search path to first include
38 # a 64-bit specific directory.
39 case "$target" in
40 x86_64*-linux*|i[3-7]86-*-linux-*)
41 case "$EMULATION_NAME" in
42 *64*)
43 LIBPATH_SUFFIX=64
44 PARSE_AND_LIST_OPTIONS_BNDPLT='
45 fprintf (file, _("\
46 -z bndplt Always generate BND prefix in PLT entries\n"));
48 PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT='
49 else if (strcmp (optarg, "bndplt") == 0)
50 link_info.bndplt = TRUE;
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"
55 esac
57 *-*-solaris2*)
58 LIBPATH_SUFFIX=/amd64
59 ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
61 esac