Remove BNDPLT and add PARSE_AND_LIST_ARGS_CASE_Z
[deliverable/binutils-gdb.git] / ld / emulparams / elf_x86_64.sh
1 . ${srcdir}/emulparams/plt_unwind.sh
2 SCRIPT_NAME=elf
3 ELFSIZE=64
4 OUTPUT_FORMAT="elf64-x86-64"
5 NO_REL_RELOCS=yes
6 TEXT_START_ADDR=0x400000
7 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
8 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
9 ARCH="i386:x86-64"
10 MACHINE=
11 TEMPLATE_NAME=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 NO_SMALL_DATA=yes
15 LARGE_SECTIONS=yes
16 LARGE_BSS_AFTER_BSS=
17 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
18 IREL_IN_PLT=
19 # Reuse TINY_READONLY_SECTION which is placed right after .plt section.
20 TINY_READONLY_SECTION="
21 .plt.got ${RELOCATING-0} : { *(.plt.got) }
22 .plt.bnd ${RELOCATING-0} : { *(.plt.bnd) }
23 "
24
25 if [ "x${host}" = "x${target}" ]; then
26 case " $EMULATION_LIBPATH " in
27 *" ${EMULATION_NAME} "*)
28 NATIVE=yes
29 esac
30 fi
31
32 # Linux/Solaris modify the default library search path to first include
33 # a 64-bit specific directory.
34 case "$target" in
35 x86_64*-linux*|i[3-7]86-*-linux-*)
36 case "$EMULATION_NAME" in
37 *64*)
38 LIBPATH_SUFFIX=64
39 PARSE_AND_LIST_OPTIONS='
40 fprintf (file, _("\
41 -z bndplt Always generate BND prefix in PLT entries\n"));
42 '
43 PARSE_AND_LIST_ARGS_CASE_Z='
44 else if (strcmp (optarg, "bndplt") == 0)
45 link_info.bndplt = TRUE;
46 '
47 ;;
48 esac
49 ;;
50 *-*-solaris2*)
51 LIBPATH_SUFFIX=/amd64
52 ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
53 ;;
54 esac
This page took 0.032615 seconds and 5 git commands to generate.