diff options
author | Alan Modra <amodra@gmail.com> | 2008-05-07 14:46:44 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-05-07 14:46:44 +0000 |
commit | 8374f9d4b51c7bb4464875756b1a4b4e9ce742f0 (patch) | |
tree | 9be50c50e3c11f9a155a9f243921b8d79bf67ae7 /ld/emulparams/elf32ppc.sh | |
parent | 8c0848b5090141528fc24baa8f869252e63b8598 (diff) | |
download | binutils-gdb-8374f9d4b51c7bb4464875756b1a4b4e9ce742f0.tar.gz |
bfd/
* elf32-spu.c (spu_elf_special_sections): Add "._ea".
(spu_elf_relocate_section): Handle relocations against symbols
defined in ._ea specially.
binutils/
* embedspu.sh: Take note of R_SPU_PPU32/64 relocs without a symbol,
and if present, put image in ".data.speelf". Put program handle
in ".data.spehandle".
ld/emulparams/
* elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
* elf32ppc.sh: If building with spu support, put ".data.spehandle"
sections at the start of ".data" and provide a symbol to locate
the directory of embedded spe programs.
ld/testsuite/
* ld-spu/ear.s: Align various sections.
* ld-spu/embed.rd: Update.
Diffstat (limited to 'ld/emulparams/elf32ppc.sh')
-rw-r--r-- | ld/emulparams/elf32ppc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/emulparams/elf32ppc.sh b/ld/emulparams/elf32ppc.sh index 68962d7325d..7349993f6c5 100644 --- a/ld/emulparams/elf32ppc.sh +++ b/ld/emulparams/elf32ppc.sh @@ -14,3 +14,11 @@ PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }" GOTPLT="${PLT}" 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 |