Browse Source
* elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete. (has_tls_reloc, has_tls_get_addr_call): Move back to.. * elf32-ppc.c: ..here. (ppc_elf_section_flags, elf_backend_section_flags): Delete. (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections. opcodes/ * ppc-dis.c: Don't include elf32-ppc.h, do include elf/ppc.h. (get_powerpc_dialect): Detect VLE sections from ELF sh_flags. ld/testsuite/ * ld-powerpc/vle.ld: New. * ld-powerpc/powerpc.exp (vle reloc tests): Link using vle.ld.cygwin-64bit-branch
8 changed files with 51 additions and 40 deletions
@ -0,0 +1,11 @@ |
|||||
|
SECTIONS |
||||
|
{ |
||||
|
. = 0x01800000 + SIZEOF_HEADERS; |
||||
|
.text : { *(.text) } |
||||
|
.PPC.EMB.sdata0 : { *(.PPC.EMB.sdata0) } |
||||
|
.sdata2 : { PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2) } |
||||
|
. = ALIGN (0x10000) + (. & (0x10000 - 1)); |
||||
|
.data : { *(.data) } |
||||
|
.sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata) } |
||||
|
/DISCARD/ : { *(*) } |
||||
|
} |
||||
Loading…
Reference in new issue