ld:
[deliverable/binutils-gdb.git] / ld / emulparams / elf64ppc.sh
1 TEMPLATE_NAME=elf32
2 EXTRA_EM_FILE=ppc64elf
3 ELFSIZE=64
4 GENERATE_SHLIB_SCRIPT=yes
5 SCRIPT_NAME=elf
6 OUTPUT_FORMAT="elf64-powerpc"
7 TEXT_START_ADDR=0x10000000
8 MAXPAGESIZE=0x40000
9 ARCH=powerpc
10 MACHINE=
11 NOP=0x60000000
12 EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
13 OTHER_BSS_END_SYMBOLS='__end = .;'
14 CTOR_START='PROVIDE (__CTOR_LIST__ = .); PROVIDE (___CTOR_LIST__ = .);'
15 CTOR_END='PROVIDE (__CTOR_END__ = .); PROVIDE (___CTOR_END__ = .);'
16 DTOR_START='PROVIDE (__DTOR_LIST__ = .); PROVIDE (___DTOR_LIST__ = .);'
17 DTOR_END='PROVIDE (__DTOR_END__ = .); PROVIDE (___DTOR_END__ = .);'
18 OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
19 BSS_PLT=
20 OTHER_BSS_SYMBOLS="
21 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
22 OTHER_PLT_RELOC_SECTIONS="
23 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
24 OTHER_GOT_SECTIONS="
25 .toc ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
26 OTHER_GOT_RELOC_SECTIONS="
27 .rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
28 OTHER_READWRITE_SECTIONS="
29 .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
30 .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.opd) }"
31
32 # Treat a host that matches the target with the possible exception of "64"
33 # in the name as if it were native.
34 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
35 case " $EMULATION_LIBPATH " in
36 *" ${EMULATION_NAME} "*)
37 LIB_PATH=${libdir}
38 for lib in ${NATIVE_LIB_DIRS}; do
39 case :${LIB_PATH}: in
40 *:${lib}:*) ;;
41 *) LIB_PATH=${LIB_PATH}:${lib} ;;
42 esac
43 done
44 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
45 case "$EMULATION_NAME" in
46 *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
47 esac
48 esac
49 fi
This page took 0.031045 seconds and 4 git commands to generate.