1 # The PLT-agnostic parts of a generic 32-bit ELF PowerPC target. Included by:
2 # elf32ppc.sh elf32ppcvxworks.sh
4 GENERATE_SHLIB_SCRIPT
=yes
5 GENERATE_PIE_SCRIPT
=yes
7 OUTPUT_FORMAT
="elf32-powerpc"
8 TEXT_START_ADDR
=0x01800000
9 MAXPAGESIZE
="CONSTANT (MAXPAGESIZE)"
10 COMMONPAGESIZE
="CONSTANT (COMMONPAGESIZE)"
13 EXECUTABLE_SYMBOLS
='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
14 if test -z "${CREATE_SHLIB}"; then
15 SDATA_START_SYMBOLS
="PROVIDE (_SDA_BASE_ = 32768);"
16 SDATA2_START_SYMBOLS
="PROVIDE (_SDA2_BASE_ = 32768);"
17 SBSS_START_SYMBOLS
="PROVIDE (__sbss_start = .); PROVIDE (___sbss_start = .);"
18 SBSS_END_SYMBOLS
="PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .);"
20 unset SDATA_START_SYMBOLS
21 unset SDATA2_START_SYMBOLS
22 unset SBSS_START_SYMBOLS
23 unset SBSS_END_SYMBOLS
25 OTHER_END_SYMBOLS
="__end = .;"
26 OTHER_RELRO_SECTIONS
="
27 .fixup ${RELOCATING-0} : { *(.fixup) }
28 .got1 ${RELOCATING-0} : { *(.got1) }
29 .got2 ${RELOCATING-0} : { *(.got2) }
31 OTHER_GOT_RELOC_SECTIONS
="
32 .rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
33 .rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
36 # Treat a host that matches the target with the possible exception of "64"
37 # in the name as if it were native.
38 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
39 case " $EMULATION_LIBPATH " in
40 *" ${EMULATION_NAME} "*)
46 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
47 case "$EMULATION_NAME" in
48 *64*) LIBPATH_SUFFIX
=64 ;;