gdbserver linux-low: Convert linux_event_pipe to the event_pipe class.
[binutils-gdb.git] / ld / emulparams / elf32_spu.sh
index 4af608cb2e179e3b0373ec079da960f0f8815a08..523f32330266dd3b627bf5d0b99b4b2259a7eab0 100644 (file)
@@ -1,7 +1,8 @@
 SCRIPT_NAME=elf
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 EXTRA_EM_FILE=spuelf
 OUTPUT_FORMAT="elf32-spu"
+NO_REL_RELOCS=yes
 ARCH=spu
 MACHINE=
 ALIGNMENT=16
@@ -17,4 +18,10 @@ EMBEDDED=true
 MAXPAGESIZE=0x80
 DATA_ADDR="ALIGN(${MAXPAGESIZE})"
 OTHER_BSS_SECTIONS=".toe ALIGN(128) : { *(.toe) } = 0"
-OTHER_SECTIONS=".note.spu_name 0 : { KEEP(*(.note.spu_name)) }"
+OTHER_SECTIONS=".note.spu_name 0 : { KEEP(*(.note.spu_name)) }
+  ._ea 0 : { KEEP(*(._ea))${RELOCATING+ KEEP(*(._ea.*))} }"
+OTHER_READONLY_SECTIONS="
+  .fixup ${RELOCATING-0} : {
+    ${RELOCATING+PROVIDE (__fixup_start = .);}
+    KEEP(*(.fixup))
+  }"