From 94caa966375d53b07f39beac80f1f9af4cac18da Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 19 May 2012 06:58:48 +0000 Subject: bfd/ * 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. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-powerpc/powerpc.exp | 8 ++++---- ld/testsuite/ld-powerpc/vle.ld | 11 +++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 ld/testsuite/ld-powerpc/vle.ld (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3c2ad42..d27e642 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-05-19 Alan Modra + + * ld-powerpc/vle.ld: New. + * ld-powerpc/powerpc.exp (vle reloc tests): Link using vle.ld. + 2012-05-18 H.J. Lu * ld-i386/tlsdesc-nacl.rd: Update for dynamic sym changes. diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index 8b7e7fd..8f08991 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -1,5 +1,5 @@ # Expect script for ld-powerpc tests -# Copyright 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +# Copyright 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 # Free Software Foundation # # This file is part of the GNU Binutils. @@ -231,13 +231,13 @@ set ppceabitests { {"VLE multiple segments 5" "-T vle-multiseg-5.ld" "-mregnames -mvle" {vle-multiseg.s} {{readelf "-l" vle-multiseg-5.d}} "vle-multiseg-5"} - {"VLE relocations 1" "" + {"VLE relocations 1" "-T vle.ld" "-mvle" {vle-reloc-1.s vle-reloc-def-1.s} {{objdump "-Mvle -d" vle-reloc-1.d}} "vle-reloc-1"} - {"VLE relocations 2" "" + {"VLE relocations 2" "-T vle.ld" "-mvle" {vle-reloc-2.s vle-reloc-def-2.s} {{objdump "-Mvle -d" vle-reloc-2.d}} "vle-reloc-2"} - {"VLE relocations 3" "" + {"VLE relocations 3" "-T vle.ld" "-mvle" {vle-reloc-3.s vle-reloc-def-3.s} {{objdump "-Mvle -d" vle-reloc-3.d}} "vle-reloc-3"} } diff --git a/ld/testsuite/ld-powerpc/vle.ld b/ld/testsuite/ld-powerpc/vle.ld new file mode 100644 index 0000000..01b6598 --- /dev/null +++ b/ld/testsuite/ld-powerpc/vle.ld @@ -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/ : { *(*) } +} -- cgit v1.1