2002-01-27 12:00:11 +00:00
|
|
|
# If you change this file, please also look at files which source this one:
|
|
|
|
# elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh
|
|
|
|
|
2000-05-12 23:15:20 +00:00
|
|
|
TEMPLATE_NAME=elf32
|
|
|
|
GENERATE_SHLIB_SCRIPT=yes
|
2001-05-28 05:21:37 +00:00
|
|
|
SCRIPT_NAME=elf
|
2000-05-12 23:15:20 +00:00
|
|
|
OUTPUT_FORMAT="elf32-powerpc"
|
|
|
|
TEXT_START_ADDR=0x01800000
|
|
|
|
MAXPAGESIZE=0x10000
|
|
|
|
ARCH=powerpc
|
|
|
|
MACHINE=
|
2001-05-28 05:21:37 +00:00
|
|
|
BSS_PLT=
|
|
|
|
EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
|
|
|
|
OTHER_BSS_END_SYMBOLS='__end = .;'
|
2002-01-27 12:00:11 +00:00
|
|
|
OTHER_READWRITE_SECTIONS="
|
|
|
|
.fixup ${RELOCATING-0} : { *(.fixup) }
|
|
|
|
.got1 ${RELOCATING-0} : { *(.got1) }
|
|
|
|
.got2 ${RELOCATING-0} : { *(.got2) }
|
|
|
|
"
|
2002-12-02 09:06:04 +00:00
|
|
|
OTHER_GOT_RELOC_SECTIONS="
|
|
|
|
.rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
|
|
|
|
.rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
|
|
|
|
"
|
2002-10-11 06:01:20 +00:00
|
|
|
|
|
|
|
# Treat a host that matches the target with the possible exception of "64"
|
|
|
|
# in the name as if it were native.
|
|
|
|
if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
|
|
|
|
case " $EMULATION_LIBPATH " in
|
|
|
|
*" ${EMULATION_NAME} "*)
|
|
|
|
LIB_PATH=${libdir}
|
|
|
|
for lib in ${NATIVE_LIB_DIRS}; do
|
|
|
|
case :${LIB_PATH}: in
|
|
|
|
*:${lib}:*) ;;
|
|
|
|
*) LIB_PATH=${LIB_PATH}:${lib} ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
|
|
|
|
case "$EMULATION_NAME" in
|
|
|
|
*64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
fi
|