bfd/
[external/binutils.git] / ld / emulparams / elf_x86_64.sh
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-x86-64"
4 TEXT_START_ADDR=0x400000
5 MAXPAGESIZE=0x100000
6 COMMONPAGESIZE=0x1000
7 NONPAGED_TEXT_START_ADDR=0x400000
8 ARCH="i386:x86-64"
9 MACHINE=
10 NOP=0x90909090
11 TEMPLATE_NAME=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 GENERATE_PIE_SCRIPT=yes
14 NO_SMALL_DATA=yes
15
16 if [ "x${host}" = "x${target}" ]; then
17   case " $EMULATION_LIBPATH " in
18     *" ${EMULATION_NAME} "*)
19       NATIVE=yes
20   esac
21 fi
22
23 # Linux modify the default library search path to first include
24 # a 64-bit specific directory.
25 case "$target" in
26   x86_64*-linux*)
27     case "$EMULATION_NAME" in
28       *64*) LIBPATH_SUFFIX=64 ;;
29     esac
30     ;;
31 esac