bfd/
[external/binutils.git] / ld / emulparams / elf32ppc.sh
1 # If you change this file, please also look at files which source this one:
2 # elf32lppcnto.sh elf32lppc.sh elf32ppclinux.sh elf32ppcnto.sh 
3 # elf32ppcsim.sh
4
5 . ${srcdir}/emulparams/elf32ppccommon.sh
6 # Yes, we want duplicate .got and .plt sections.  The linker chooses the
7 # appropriate one magically in ppc_after_open
8 DATA_GOT=
9 SDATA_GOT=
10 SEPARATE_GOTPLT=0
11 BSS_PLT=
12 GOT=".got          ${RELOCATING-0} : SPECIAL { *(.got) }"
13 PLT=".plt          ${RELOCATING-0} : SPECIAL { *(.plt) }"
14 GOTPLT="${PLT}"
15 OTHER_TEXT_SECTIONS="*(.glink)"
16 EXTRA_EM_FILE=ppc32elf
17 if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then
18 # crt1.o defines data_start and __data_start.  Keep them first.
19 # Next put all the .data.spehandle sections, with a trailing zero word.
20   DATA_START_SYMBOLS="${RELOCATING+*crt1.o(.data .data.* .gnu.linkonce.d.*)
21     PROVIDE (__spe_handle = .);
22     *(.data.spehandle)
23     . += 4 * (DEFINED (__spe_handle) || . != 0);}"
24 fi