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