Note that if '@' is a comment character then another symbol is used to prefix
[binutils.git] / ld / emulparams / elf_x86_64.sh
blob1786e339467a5e5fd8d358e6e8a9aba801d5649c
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 NO_SMALL_DATA=yes
15 if [ "x${host}" = "x${target}" ]; then
16 case " $EMULATION_LIBPATH " in
17 *" ${EMULATION_NAME} "*)
18 # Native, and default or emulation requesting LIB_PATH.
20 # Linux modify the default library search path to first include
21 # a 64-bit specific directory.
22 case "$target" in
23 x86_64*-linux*)
24 suffix=64 ;;
25 esac
27 if [ -n "${suffix}" ]; then
29 LIB_PATH=/lib${suffix}:/lib
30 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
31 if [ -n "${NATIVE_LIB_DIRS}" ]; then
32 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS}
34 if [ "${libdir}" != /usr/lib ]; then
35 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
37 if [ "${libdir}" != /usr/local/lib ]; then
38 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
43 esac