]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/emulparams/elf32ppc.sh
2005-02-10 Andrew Cagney <cagney@gnu.org>
[thirdparty/binutils-gdb.git] / ld / emulparams / elf32ppc.sh
CommitLineData
465bc359
AM
1# If you change this file, please also look at files which source this one:
2# elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh
3
252b5132 4TEMPLATE_NAME=elf32
f9e6bfa8 5EXTRA_EM_FILE=ppc32elf
252b5132 6GENERATE_SHLIB_SCRIPT=yes
36af4a4e 7GENERATE_PIE_SCRIPT=yes
bdbe5705 8SCRIPT_NAME=elf
252b5132
RH
9OUTPUT_FORMAT="elf32-powerpc"
10TEXT_START_ADDR=0x01800000
18069efc 11MAXPAGESIZE=0x10000
e5c60db5 12COMMONPAGESIZE=0x1000
5c368657 13ARCH=powerpc:common
252b5132 14MACHINE=
bdbe5705
GK
15BSS_PLT=
16EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
17OTHER_BSS_END_SYMBOLS='__end = .;'
8c37241b 18OTHER_RELRO_SECTIONS="
465bc359
AM
19 .fixup ${RELOCATING-0} : { *(.fixup) }
20 .got1 ${RELOCATING-0} : { *(.got1) }
21 .got2 ${RELOCATING-0} : { *(.got2) }
22"
fdb9132d
L
23OTHER_GOT_RELOC_SECTIONS="
24 .rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
25 .rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
26"
eb3d6bb8
AM
27
28# Treat a host that matches the target with the possible exception of "64"
29# in the name as if it were native.
30if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
9c8ebd6a
DJ
31 case " $EMULATION_LIBPATH " in
32 *" ${EMULATION_NAME} "*)
33 NATIVE=yes
34 ;;
35 esac
eb3d6bb8 36fi
9c8ebd6a
DJ
37
38# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
39case "$EMULATION_NAME" in
40 *64*) LIBPATH_SUFFIX=64 ;;
41esac