* src-release (DEVO_SUPPORT): Correct typos.
[binutils.git] / ld / emulparams / elf32ppccommon.sh
blob1a12890b06396f6a8750564cf264c6dd7f37cea5
1 # The PLT-agnostic parts of a generic 32-bit ELF PowerPC target. Included by:
2 # elf32ppc.sh elf32ppcvxworks.sh
3 TEMPLATE_NAME=elf32
4 GENERATE_SHLIB_SCRIPT=yes
5 GENERATE_PIE_SCRIPT=yes
6 SCRIPT_NAME=elf
7 OUTPUT_FORMAT="elf32-powerpc"
8 TEXT_START_ADDR=0x01800000
9 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
10 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
11 ARCH=powerpc:common
12 MACHINE=
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 = .);"
19 else
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} "*)
41 NATIVE=yes
43 esac
46 # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
47 case "$EMULATION_NAME" in
48 *64*) LIBPATH_SUFFIX=64 ;;
49 esac