4 GENERATE_SHLIB_SCRIPT=yes
6 OUTPUT_FORMAT="elf64-powerpc"
7 TEXT_START_ADDR=0x10000000
8 SEGMENT_SIZE=0x10000000
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)"
23 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
24 OTHER_PLT_RELOC_SECTIONS="
25 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
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)) }"
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} "*)
40 for lib in ${NATIVE_LIB_DIRS}; do
43 *) LIB_PATH=${LIB_PATH}:${lib} ;;
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