Commit | Line | Data |
---|---|---|
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 |
ee2fdd6f | 6 | . ${srcdir}/emulparams/cet.sh |
2be3aa03 NC |
7 | SCRIPT_NAME=elf |
8 | ELFSIZE=64 | |
9 | OUTPUT_FORMAT="elf64-x86-64" | |
d9689752 | 10 | CHECK_RELOCS_AFTER_OPEN_INPUT=yes |
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= |
2be3aa03 NC |
17 | TEMPLATE_NAME=elf32 |
18 | GENERATE_SHLIB_SCRIPT=yes | |
36af4a4e | 19 | GENERATE_PIE_SCRIPT=yes |
48459341 | 20 | NO_SMALL_DATA=yes |
9599dfb1 | 21 | LARGE_SECTIONS=yes |
134960cc | 22 | LARGE_BSS_AFTER_BSS= |
17d6eea5 | 23 | SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0" |
8dfab6dd | 24 | IREL_IN_PLT= |
0ff2b86e | 25 | # Reuse TINY_READONLY_SECTION which is placed right after .plt section. |
dd7e64d4 L |
26 | TINY_READONLY_SECTION=" |
27 | .plt.got ${RELOCATING-0} : { *(.plt.got) } | |
f2c29a16 | 28 | .plt.sec ${RELOCATING-0} : { *(.plt.sec) } |
dd7e64d4 | 29 | " |
beb43bb9 JH |
30 | |
31 | if [ "x${host}" = "x${target}" ]; then | |
32 | case " $EMULATION_LIBPATH " in | |
33 | *" ${EMULATION_NAME} "*) | |
9c8ebd6a | 34 | NATIVE=yes |
beb43bb9 JH |
35 | esac |
36 | fi | |
9c8ebd6a | 37 | |
ff15b240 | 38 | # Linux/Solaris modify the default library search path to first include |
9c8ebd6a DJ |
39 | # a 64-bit specific directory. |
40 | case "$target" in | |
e4818e07 | 41 | x86_64*-linux*|i[3-7]86-*-linux-*) |
9c8ebd6a | 42 | case "$EMULATION_NAME" in |
d258b828 IZ |
43 | *64*) |
44 | LIBPATH_SUFFIX=64 | |
889c2a67 | 45 | PARSE_AND_LIST_OPTIONS_BNDPLT=' |
eba27bd7 L |
46 | fprintf (file, _("\ |
47 | -z bndplt Always generate BND prefix in PLT entries\n")); | |
48 | ' | |
889c2a67 | 49 | PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT=' |
eba27bd7 L |
50 | else if (strcmp (optarg, "bndplt") == 0) |
51 | link_info.bndplt = TRUE; | |
52 | ' | |
889c2a67 L |
53 | PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_BNDPLT" |
54 | PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT" | |
d258b828 | 55 | ;; |
9c8ebd6a DJ |
56 | esac |
57 | ;; | |
e4492aa0 | 58 | *-*-solaris2*) |
ff15b240 NC |
59 | LIBPATH_SUFFIX=/amd64 |
60 | ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\" | |
61 | ;; | |
9c8ebd6a | 62 | esac |