mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
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.
This commit is contained in:
@ -5,6 +5,7 @@ _start:
|
||||
|
||||
#test old-style toe _EAR_ syms
|
||||
.section .toe,"a",@nobits
|
||||
.p2align 4
|
||||
_EAR_:
|
||||
.space 16
|
||||
_EAR_bar:
|
||||
@ -12,6 +13,7 @@ _EAR_bar:
|
||||
|
||||
#test new-style _EAR_ syms
|
||||
.data
|
||||
.p2align 4
|
||||
_EAR_main:
|
||||
.space 16
|
||||
|
||||
@ -21,5 +23,6 @@ _EAR_foo:
|
||||
.space 16
|
||||
|
||||
.section .data.blah,"aw",@progbits
|
||||
.p2align 4
|
||||
_EAR_blah:
|
||||
.space 16
|
||||
|
@ -1,16 +1,16 @@
|
||||
|
||||
Relocation section '\.rela\.rodata\.speelf' at .* contains 3 entries:
|
||||
Offset Info Type Sym\. Value Symbol's Name \+ Addend
|
||||
00000184 00000601 R_PPC_ADDR32 00000000 main \+ 0
|
||||
000001a4 00000901 R_PPC_ADDR32 00000000 foo \+ 0
|
||||
000001b4 00000701 R_PPC_ADDR32 00000000 blah \+ 0
|
||||
|
||||
Relocation section '\.rela\.data' at .* contains 2 entries:
|
||||
Offset Info Type Sym\. Value Symbol's Name \+ Addend
|
||||
00000004 00000201 R_PPC_ADDR32 00000000 \.rodata\.speelf \+ 0
|
||||
00000008 00000401 R_PPC_ADDR32 00000000 \.data\.spetoe \+ 0
|
||||
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
|
||||
0+184 .* R_PPC_ADDR32 +0+0 +main \+ 0
|
||||
0+1a4 .* R_PPC_ADDR32 +0+0 +foo \+ 0
|
||||
0+1b4 .* R_PPC_ADDR32 +0+0 +blah \+ 0
|
||||
|
||||
Relocation section '\.rela\.data\.spetoe' at .* contains 2 entries:
|
||||
Offset Info Type Sym\. Value Symbol's Name \+ Addend
|
||||
00000004 00000201 R_PPC_ADDR32 00000000 \.rodata\.speelf \+ 0
|
||||
00000014 00000a01 R_PPC_ADDR32 00000000 bar \+ 0
|
||||
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
|
||||
0+004 .* R_PPC_ADDR32 +0+0 +\.rodata\.speelf \+ 0
|
||||
0+014 .* R_PPC_ADDR32 +0+0 +bar \+ 0
|
||||
|
||||
Relocation section '\.rela\.data\.spehandle' at .* contains 2 entries:
|
||||
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
|
||||
0+004 .* R_PPC_ADDR32 +0+0 +\.rodata\.speelf \+ 0
|
||||
0+008 .* R_PPC_ADDR32 +0+0 +\.data\.spetoe \+ 0
|
||||
|
Reference in New Issue
Block a user