2012-03-26 19:18:29 +00:00
|
|
|
# If you change this file, please also look at files which source this one:
|
2014-09-12 22:14:23 +00:00
|
|
|
# elf32lppcnto.sh elf32lppc.sh elf32ppclinux.sh elf32ppcnto.sh
|
2012-03-26 19:18:29 +00:00
|
|
|
# elf32ppcsim.sh
|
|
|
|
|
|
|
|
. ${srcdir}/emulparams/elf32ppccommon.sh
|
2014-09-12 22:14:23 +00:00
|
|
|
. ${srcdir}/emulparams/plt_unwind.sh
|
2012-03-26 19:18:29 +00:00
|
|
|
# Yes, we want duplicate .got and .plt sections. The linker chooses the
|
|
|
|
# appropriate one magically in ppc_after_open
|
|
|
|
DATA_GOT=
|
|
|
|
SDATA_GOT=
|
|
|
|
SEPARATE_GOTPLT=0
|
|
|
|
BSS_PLT=
|
|
|
|
GOT=".got ${RELOCATING-0} : SPECIAL { *(.got) }"
|
|
|
|
GOTPLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }"
|
|
|
|
PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }
|
|
|
|
.iplt ${RELOCATING-0} : { *(.iplt) }"
|
|
|
|
OTHER_TEXT_SECTIONS="*(.glink)"
|
|
|
|
EXTRA_EM_FILE=ppc32elf
|
|
|
|
if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then
|
|
|
|
# crt1.o defines data_start and __data_start. Keep them first.
|
|
|
|
# Next put all the .data.spehandle sections, with a trailing zero word.
|
|
|
|
DATA_START_SYMBOLS="${RELOCATING+*crt1.o(.data .data.* .gnu.linkonce.d.*)
|
|
|
|
PROVIDE (__spe_handle = .);
|
|
|
|
*(.data.spehandle)
|
|
|
|
. += 4 * (DEFINED (__spe_handle) || . != 0);}"
|
|
|
|
fi
|