Fix regression from change
[binutils.git] / ld / emulparams / elf32_x86_64.sh
blobfb9400312b2bf54a1b95de4d2ff6d158df0b97b9
1 . ${srcdir}/emulparams/plt_unwind.sh
2 SCRIPT_NAME=elf
3 ELFSIZE=32
4 OUTPUT_FORMAT="elf32-x86-64"
5 NO_REL_RELOCS=yes
6 TEXT_START_ADDR=0x400000
7 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
8 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
9 ARCH="i386:x64-32"
10 MACHINE=
11 TEMPLATE_NAME=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 NO_SMALL_DATA=yes
15 LARGE_SECTIONS=yes
16 SEPARATE_GOTPLT=24
17 IREL_IN_PLT=
19 if [ "x${host}" = "x${target}" ]; then
20 case " $EMULATION_LIBPATH " in
21 *" ${EMULATION_NAME} "*)
22 NATIVE=yes
23 esac
26 # Linux modifies the default library search path to first include
27 # a 32-bit specific directory.
28 case "$target" in
29 x86_64*-linux*|i[3-7]86-*-linux-*)
30 case "$EMULATION_NAME" in
31 *32*) LIBPATH_SUFFIX=x32 ;;
32 *64*) LIBPATH_SUFFIX=64 ;;
33 esac
35 esac