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