aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2010-02-24 11:15:11 +0000
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2010-02-24 11:15:11 +0000
commitc9ee9c4cb81bcf7cee85eb564fa9b111143cd307 (patch)
treeccfbbd4cbac0e046e032297161267953ffb04f59 /ld
parentf6bbabf05407ec9e8efb75d31fedf122bc2fdc90 (diff)
downloadgdb-c9ee9c4cb81bcf7cee85eb564fa9b111143cd307.zip
gdb-c9ee9c4cb81bcf7cee85eb564fa9b111143cd307.tar.gz
gdb-c9ee9c4cb81bcf7cee85eb564fa9b111143cd307.tar.bz2
* ld/testsuite/ld-arm/group-relocs.s: Mark code sections as executable.
* ld/testsuite/ld-arm/arm-elf.exp (armelftests): Only dump executable sections in group-relocs test. * ld/testsuite/ld-arm/reloc-boundaries.d: Fix test to work on Linux targets.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-arm/arm-elf.exp2
-rw-r--r--ld/testsuite/ld-arm/group-relocs.s6
-rw-r--r--ld/testsuite/ld-arm/reloc-boundaries.d2
4 files changed, 12 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0bbe35e..940685d 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2010-02-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * ld-arm/group-relocs.s: Mark code sections as executable.
+ * ld-arm/arm-elf.exp (armelftests): Only dump executable sections in
+ group-relocs test.
+ * ld-arm/reloc-boundaries.d: Fix test to work on Linux targets.
+
2010-02-23 Nick Clifton <nickc@redhat.com>
* ld-elf/orphan4.d: Allow for other sections to be present in the
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index ed9cb74..40e78b8 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -69,7 +69,7 @@ if { ![is_elf_format] || ![istarget "arm*-*-*"] } {
set armelftests {
{"Group relocations" "-Ttext 0x8000 --section-start zero=0x0 --section-start alpha=0xeef0 --section-start beta=0xffeef0" "" {group-relocs.s}
- {{objdump -Dr group-relocs.d}}
+ {{objdump -dr group-relocs.d}}
"group-relocs"}
{"Thumb-1 BL" "-Ttext 0x1000 --section-start .foo=0x401000" "" {thumb1-bl.s}
{{objdump -dr thumb1-bl.d}}
diff --git a/ld/testsuite/ld-arm/group-relocs.s b/ld/testsuite/ld-arm/group-relocs.s
index da1a150..b6467f4 100644
--- a/ld/testsuite/ld-arm/group-relocs.s
+++ b/ld/testsuite/ld-arm/group-relocs.s
@@ -118,7 +118,7 @@ one_group_needed_ldc_pc:
@ We will place the section zero at 0x0.
- .section zero
+ .section zero, "x"
one_group_needed_alu_sb:
one_group_needed_ldr_sb:
@@ -128,7 +128,7 @@ one_group_needed_ldc_sb:
@ We will place the section alpha at 0xeef0.
- .section alpha
+ .section alpha, "x"
two_groups_needed_alu_sb:
two_groups_needed_ldr_sb:
@@ -142,7 +142,7 @@ two_groups_needed_ldc_pc:
@ We will place the section beta at 0xffeef0.
- .section beta
+ .section beta, "x"
three_groups_needed_alu_sb:
three_groups_needed_ldr_sb:
diff --git a/ld/testsuite/ld-arm/reloc-boundaries.d b/ld/testsuite/ld-arm/reloc-boundaries.d
index dcdefd9..bcc13d0 100644
--- a/ld/testsuite/ld-arm/reloc-boundaries.d
+++ b/ld/testsuite/ld-arm/reloc-boundaries.d
@@ -2,5 +2,5 @@
[^:]*: file format elf32-(little|big)arm
Contents of section .text:
- 8000 80ff0080 ffff ......
+ 80.. 80ff0080 ffff ......
#...