* elf/hppa.h (R_PARISC_DIR64WR, R_PARISC_DIR64DR): Remove relocs.
[deliverable/binutils-gdb.git] / ld / emulparams / elf32ppc.sh
CommitLineData
465bc359 1# If you change this file, please also look at files which source this one:
9d8504b1 2# elf32lppc.sh elf32ppclinux.sh elf32ppcsim.sh elf32ppcvxworks.sh
465bc359 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=
0cf7d72c
AM
15# Yes, we want duplicate .got and .plt sections. The linker chooses the
16# appropriate one magically in ppc_after_open
17DATA_GOT=
18SDATA_GOT=
19SEPARATE_GOTPLT=0
bdbe5705 20BSS_PLT=
0cf7d72c
AM
21GOT=".got ${RELOCATING-0} : SPECIAL { *(.got) }"
22PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }"
23GOTPLT="${PLT}"
24OTHER_TEXT_SECTIONS="*(.glink)"
bdbe5705 25EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
046183de
AM
26if test -z "${CREATE_SHLIB}"; then
27 SDATA_START_SYMBOLS="PROVIDE (_SDA_BASE_ = 32768);"
28 SDATA2_START_SYMBOLS="PROVIDE (_SDA2_BASE_ = 32768);"
29 SBSS_START_SYMBOLS="PROVIDE (__sbss_start = .); PROVIDE (___sbss_start = .);"
30 SBSS_END_SYMBOLS="PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .);"
31else
32 unset SDATA_START_SYMBOLS
33 unset SDATA2_START_SYMBOLS
34 unset SBSS_START_SYMBOLS
35 unset SBSS_END_SYMBOLS
36fi
9f4fb502 37OTHER_END_SYMBOLS="__end = .;"
8c37241b 38OTHER_RELRO_SECTIONS="
465bc359
AM
39 .fixup ${RELOCATING-0} : { *(.fixup) }
40 .got1 ${RELOCATING-0} : { *(.got1) }
41 .got2 ${RELOCATING-0} : { *(.got2) }
42"
fdb9132d
L
43OTHER_GOT_RELOC_SECTIONS="
44 .rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
45 .rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
46"
eb3d6bb8
AM
47
48# Treat a host that matches the target with the possible exception of "64"
49# in the name as if it were native.
50if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
9c8ebd6a
DJ
51 case " $EMULATION_LIBPATH " in
52 *" ${EMULATION_NAME} "*)
53 NATIVE=yes
54 ;;
55 esac
eb3d6bb8 56fi
9c8ebd6a
DJ
57
58# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
59case "$EMULATION_NAME" in
60 *64*) LIBPATH_SUFFIX=64 ;;
61esac
This page took 0.259761 seconds and 4 git commands to generate.