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