Commit | Line | Data |
---|---|---|
c40e31a1 AM |
1 | source_sh ${srcdir}/emulparams/plt_unwind.sh |
2 | source_sh ${srcdir}/emulparams/extern_protected_data.sh | |
3 | source_sh ${srcdir}/emulparams/dynamic_undefined_weak.sh | |
4 | source_sh ${srcdir}/emulparams/reloc_overflow.sh | |
5 | source_sh ${srcdir}/emulparams/call_nop.sh | |
6 | source_sh ${srcdir}/emulparams/cet.sh | |
74e10d17 | 7 | source_sh ${srcdir}/emulparams/static.sh |
2be3aa03 NC |
8 | SCRIPT_NAME=elf |
9 | ELFSIZE=64 | |
10 | OUTPUT_FORMAT="elf64-x86-64" | |
485cf679 | 11 | NO_REL_RELOCS=yes |
8f3aa7a0 | 12 | TEXT_START_ADDR=0x400000 |
24718e3b L |
13 | MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" |
14 | COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" | |
beb43bb9 | 15 | ARCH="i386:x86-64" |
2be3aa03 | 16 | MACHINE= |
075a2b89 | 17 | TEMPLATE_NAME=elf |
5b9c07b2 | 18 | EXTRA_EM_FILE="elf-x86" |
2be3aa03 | 19 | GENERATE_SHLIB_SCRIPT=yes |
36af4a4e | 20 | GENERATE_PIE_SCRIPT=yes |
48459341 | 21 | NO_SMALL_DATA=yes |
9599dfb1 | 22 | LARGE_SECTIONS=yes |
134960cc | 23 | LARGE_BSS_AFTER_BSS= |
17d6eea5 | 24 | SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0" |
8dfab6dd | 25 | IREL_IN_PLT= |
ce3ad333 L |
26 | # These sections are placed right after .plt section. |
27 | OTHER_PLT_SECTIONS=" | |
dd7e64d4 | 28 | .plt.got ${RELOCATING-0} : { *(.plt.got) } |
f2c29a16 | 29 | .plt.sec ${RELOCATING-0} : { *(.plt.sec) } |
dd7e64d4 | 30 | " |
beb43bb9 JH |
31 | |
32 | if [ "x${host}" = "x${target}" ]; then | |
33 | case " $EMULATION_LIBPATH " in | |
34 | *" ${EMULATION_NAME} "*) | |
9c8ebd6a | 35 | NATIVE=yes |
beb43bb9 JH |
36 | esac |
37 | fi | |
9c8ebd6a | 38 | |
ff15b240 | 39 | # Linux/Solaris modify the default library search path to first include |
9c8ebd6a DJ |
40 | # a 64-bit specific directory. |
41 | case "$target" in | |
e4818e07 | 42 | x86_64*-linux*|i[3-7]86-*-linux-*) |
9c8ebd6a | 43 | case "$EMULATION_NAME" in |
d258b828 | 44 | *64*) |
6c19b93b | 45 | LIBPATH_SUFFIX=64 |
889c2a67 | 46 | PARSE_AND_LIST_OPTIONS_BNDPLT=' |
eba27bd7 L |
47 | fprintf (file, _("\ |
48 | -z bndplt Always generate BND prefix in PLT entries\n")); | |
49 | ' | |
889c2a67 | 50 | PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT=' |
eba27bd7 | 51 | else if (strcmp (optarg, "bndplt") == 0) |
5b9c07b2 | 52 | params.bndplt = TRUE; |
eba27bd7 | 53 | ' |
889c2a67 L |
54 | PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_BNDPLT" |
55 | PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT" | |
6c19b93b | 56 | ;; |
9c8ebd6a DJ |
57 | esac |
58 | ;; | |
e4492aa0 | 59 | *-*-solaris2*) |
ff15b240 NC |
60 | LIBPATH_SUFFIX=/amd64 |
61 | ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\" | |
62 | ;; | |
9c8ebd6a | 63 | esac |