* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
[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 SCRIPT_NAME=elf
6 OUTPUT_FORMAT="elf64-powerpc"
7 TEXT_START_ADDR=0x10000000
8 SEGMENT_SIZE=0x10000000
9 MAXPAGESIZE=0x40000
10 COMMONPAGESIZE=0x1000
11 ARCH=powerpc:common64
12 MACHINE=
13 NOP=0x60000000
14 EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
15 OTHER_BSS_END_SYMBOLS='__end = .;'
16 CTOR_START='PROVIDE (__CTOR_LIST__ = .); PROVIDE (___CTOR_LIST__ = .);'
17 CTOR_END='PROVIDE (__CTOR_END__ = .); PROVIDE (___CTOR_END__ = .);'
18 DTOR_START='PROVIDE (__DTOR_LIST__ = .); PROVIDE (___DTOR_LIST__ = .);'
19 DTOR_END='PROVIDE (__DTOR_END__ = .); PROVIDE (___DTOR_END__ = .);'
20 OTHER_TEXT_SECTIONS="*(.sfpr .glink)"
21 BSS_PLT=
22 OTHER_BSS_SYMBOLS="
23   .tocbss       ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
24 OTHER_PLT_RELOC_SECTIONS="
25   .rela.tocbss  ${RELOCATING-0} : { *(.rela.tocbss) }"
26 OTHER_GOT_SECTIONS="
27   .toc          ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
28 OTHER_GOT_RELOC_SECTIONS="
29   .rela.toc     ${RELOCATING-0} : { *(.rela.toc) }"
30 OTHER_READWRITE_SECTIONS="
31   .toc1         ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) }
32   .opd          ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }"
33
34 # Treat a host that matches the target with the possible exception of "64"
35 # in the name as if it were native.
36 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
37     case " $EMULATION_LIBPATH " in
38       *" ${EMULATION_NAME} "*)
39         LIB_PATH=${libdir}
40         for lib in ${NATIVE_LIB_DIRS}; do
41           case :${LIB_PATH}: in
42             *:${lib}:*) ;;
43             *) LIB_PATH=${LIB_PATH}:${lib} ;;
44           esac
45         done
46         # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
47         case "$EMULATION_NAME" in
48           *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
49         esac
50     esac
51 fi