4 GENERATE_SHLIB_SCRIPT=yes
6 OUTPUT_FORMAT="elf64-powerpc"
7 TEXT_START_ADDR=0x10000000
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)"
21 .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
22 OTHER_PLT_RELOC_SECTIONS="
23 .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
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)} : { KEEP (*(.opd)) }"
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} "*)
38 for lib in ${NATIVE_LIB_DIRS}; do
41 *) LIB_PATH=${LIB_PATH}:${lib} ;;
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