* cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
[deliverable/binutils-gdb.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 NONPAGED_TEXT_START_ADDR=0x400000
7 ARCH="i386:x86-64"
8 MACHINE=
9 NOP=0x90909090
10 TEMPLATE_NAME=elf32
11 GENERATE_SHLIB_SCRIPT=yes
12 NO_SMALL_DATA=yes
13
14 if [ "x${host}" = "x${target}" ]; then
15 case " $EMULATION_LIBPATH " in
16 *" ${EMULATION_NAME} "*)
17 # Native, and default or emulation requesting LIB_PATH.
18
19 # Linux modify the default library search path to first include
20 # a 64-bit specific directory.
21 case "$target" in
22 x86_64*-linux*)
23 suffix=64 ;;
24 esac
25
26 if [ -n "${suffix}" ]; then
27
28 LIB_PATH=/lib${suffix}:/lib
29 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
30 if [ -n "${NATIVE_LIB_DIRS}" ]; then
31 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS}
32 fi
33 if [ "${libdir}" != /usr/lib ]; then
34 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
35 fi
36 if [ "${libdir}" != /usr/local/lib ]; then
37 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
38 fi
39
40 fi
41 ;;
42 esac
43 fi
This page took 0.031169 seconds and 5 git commands to generate.