2007-02-10 Paolo Bonzini <bonzini@gnu.org>
[binutils.git] / ld / emulparams / elf_x86_64.sh
blob449ccc90bd8d0f24ad53be99daa53b58210eb506
1 SCRIPT_NAME=elf
2 ELFSIZE=64
3 OUTPUT_FORMAT="elf64-x86-64"
4 TEXT_START_ADDR=0x400000
5 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
6 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
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 LARGE_SECTIONS=yes
16 SEPARATE_GOTPLT=24
18 if [ "x${host}" = "x${target}" ]; then
19 case " $EMULATION_LIBPATH " in
20 *" ${EMULATION_NAME} "*)
21 NATIVE=yes
22 esac
25 # Linux/Solaris modify the default library search path to first include
26 # a 64-bit specific directory.
27 case "$target" in
28 x86_64*-linux*|i[3-7]86-*-linux-*)
29 case "$EMULATION_NAME" in
30 *64*) LIBPATH_SUFFIX=64 ;;
31 esac
33 *-*-solaris2*)
34 LIBPATH_SUFFIX=/amd64
35 ELF_INTERPRETER_NAME=\"/lib/amd64/ld.so.1\"
37 esac