* emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
[external/binutils.git] / ld / emulparams / elf64ppc.sh
1 TEMPLATE_NAME=elf32
2 EXTRA_EM_FILE=ppc64elf
3 ELFSIZE=64
4 GENERATE_SHLIB_SCRIPT=yes
5 GENERATE_PIE_SCRIPT=yes
6 SCRIPT_NAME=elf
7 OUTPUT_FORMAT="elf64-powerpc"
8 TEXT_START_ADDR=0x10000000
9 #SEGMENT_SIZE=0x10000000
10 MAXPAGESIZE=0x10000
11 COMMONPAGESIZE=0x1000
12 ARCH=powerpc:common64
13 MACHINE=
14 NOP=0x60000000
15 OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
16 BSS_PLT=
17 OTHER_BSS_SYMBOLS="
18   .tocbss       ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
19 OTHER_PLT_RELOC_SECTIONS="
20   .rela.tocbss  ${RELOCATING-0} : { *(.rela.tocbss) }"
21 OTHER_GOT_SECTIONS="
22   .toc          ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
23 OTHER_GOT_RELOC_SECTIONS="
24   .rela.toc     ${RELOCATING-0} : { *(.rela.toc) }"
25 OTHER_READWRITE_SECTIONS="
26   .toc1         ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
27   .opd          ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }"
28
29 # Treat a host that matches the target with the possible exception of "64"
30 # in the name as if it were native.
31 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
32   case " $EMULATION_LIBPATH " in
33     *" ${EMULATION_NAME} "*)
34       NATIVE=yes
35       ;;
36   esac
37 fi
38
39 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
40 case "$EMULATION_NAME" in
41   *64*) LIBPATH_SUFFIX=64 ;;
42 esac