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