1 . ${srcdir}/emulparams/plt_unwind.sh
2 . ${srcdir}/emulparams/extern_protected_data.sh
3 . ${srcdir}/emulparams/call_nop.sh
6 OUTPUT_FORMAT="elf64-x86-64"
8 TEXT_START_ADDR=0x400000
9 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
10 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
14 GENERATE_SHLIB_SCRIPT=yes
15 GENERATE_PIE_SCRIPT=yes
19 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
21 # Reuse TINY_READONLY_SECTION which is placed right after .plt section.
22 TINY_READONLY_SECTION="
23 .plt.got ${RELOCATING-0} : { *(.plt.got) }
24 .plt.bnd ${RELOCATING-0} : { *(.plt.bnd) }
27 if [ "x${host}" = "x${target}" ]; then
28 case " $EMULATION_LIBPATH " in
29 *" ${EMULATION_NAME} "*)
34 # Linux/Solaris modify the default library search path to first include
35 # a 64-bit specific directory.
37 x86_64*-linux*|i[3-7]86-*-linux-*)
38 case "$EMULATION_NAME" in
41 PARSE_AND_LIST_OPTIONS_BNDPLT='
43 -z bndplt Always generate BND prefix in PLT entries\n"));
45 PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT='
46 else if (strcmp (optarg, "bndplt") == 0)
47 link_info.bndplt = TRUE;
49 PARSE_AND_LIST_OPTIONS="$PARSE_AND_LIST_OPTIONS $PARSE_AND_LIST_OPTIONS_BNDPLT"
50 PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_BNDPLT"
56 ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"