Deleted Added
full compact
elf32ppc.sh (104834) elf32ppc.sh (107492)
1# If you change this file, please also look at files which source this one:
2# elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh
3
4TEMPLATE_NAME=elf32
5GENERATE_SHLIB_SCRIPT=yes
6SCRIPT_NAME=elf
7OUTPUT_FORMAT="elf32-powerpc"
8TEXT_START_ADDR=0x01800000
9MAXPAGESIZE=0x10000
10ARCH=powerpc
11MACHINE=
12BSS_PLT=
13EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
14OTHER_BSS_END_SYMBOLS='__end = .;'
15OTHER_READWRITE_SECTIONS="
16 .fixup ${RELOCATING-0} : { *(.fixup) }
17 .got1 ${RELOCATING-0} : { *(.got1) }
18 .got2 ${RELOCATING-0} : { *(.got2) }
19"
1# If you change this file, please also look at files which source this one:
2# elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh
3
4TEMPLATE_NAME=elf32
5GENERATE_SHLIB_SCRIPT=yes
6SCRIPT_NAME=elf
7OUTPUT_FORMAT="elf32-powerpc"
8TEXT_START_ADDR=0x01800000
9MAXPAGESIZE=0x10000
10ARCH=powerpc
11MACHINE=
12BSS_PLT=
13EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
14OTHER_BSS_END_SYMBOLS='__end = .;'
15OTHER_READWRITE_SECTIONS="
16 .fixup ${RELOCATING-0} : { *(.fixup) }
17 .got1 ${RELOCATING-0} : { *(.got1) }
18 .got2 ${RELOCATING-0} : { *(.got2) }
19"
20OTHER_GOT_RELOC_SECTIONS="
21 .rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
22 .rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
23"
20
21# Treat a host that matches the target with the possible exception of "64"
22# in the name as if it were native.
23if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
24 case " $EMULATION_LIBPATH " in
25 *" ${EMULATION_NAME} "*)
26 LIB_PATH=${libdir}
27 for lib in ${NATIVE_LIB_DIRS}; do
28 case :${LIB_PATH}: in
29 *:${lib}:*) ;;
30 *) LIB_PATH=${LIB_PATH}:${lib} ;;
31 esac
32 done
33 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
34 case "$EMULATION_NAME" in
35 *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
36 esac
37 esac
38fi
24
25# Treat a host that matches the target with the possible exception of "64"
26# in the name as if it were native.
27if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
28 case " $EMULATION_LIBPATH " in
29 *" ${EMULATION_NAME} "*)
30 LIB_PATH=${libdir}
31 for lib in ${NATIVE_LIB_DIRS}; do
32 case :${LIB_PATH}: in
33 *:${lib}:*) ;;
34 *) LIB_PATH=${LIB_PATH}:${lib} ;;
35 esac
36 done
37 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
38 case "$EMULATION_NAME" in
39 *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
40 esac
41 esac
42fi