* elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
[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:
54530ea4
AM
2# elf32lppcnto.sh elf32lppc.sh elf32ppclinux.sh elf32ppcnto.sh
3# elf32ppcsim.sh
465bc359 4
4a3dc543 5. ${srcdir}/emulparams/elf32ppccommon.sh
0cf7d72c
AM
6# Yes, we want duplicate .got and .plt sections. The linker chooses the
7# appropriate one magically in ppc_after_open
8DATA_GOT=
9SDATA_GOT=
10SEPARATE_GOTPLT=0
bdbe5705 11BSS_PLT=
0cf7d72c 12GOT=".got ${RELOCATING-0} : SPECIAL { *(.got) }"
e054468f
AM
13GOTPLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }"
14PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) *(.iplt) }
15 .iplt ${RELOCATING-0} : { *(.iplt) }"
0cf7d72c 16OTHER_TEXT_SECTIONS="*(.glink)"
4a3dc543 17EXTRA_EM_FILE=ppc32elf
8374f9d4
AM
18if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then
19# crt1.o defines data_start and __data_start. Keep them first.
20# Next put all the .data.spehandle sections, with a trailing zero word.
21 DATA_START_SYMBOLS="${RELOCATING+*crt1.o(.data .data.* .gnu.linkonce.d.*)
22 PROVIDE (__spe_handle = .);
23 *(.data.spehandle)
24 . += 4 * (DEFINED (__spe_handle) || . != 0);}"
25fi
This page took 0.373735 seconds and 4 git commands to generate.