aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorDaniel Gutson <dgutson@codesourcery.com>2009-12-28 18:55:16 +0000
committerDaniel Gutson <dgutson@codesourcery.com>2009-12-28 18:55:16 +0000
commit4e67d4ca2a172339a5899ae47a065e61d1a13e69 (patch)
tree4bab1100507b771ba76b33fecc7e51c0df2e98dc /ld/testsuite
parent2598a05c7be4d36b9cf79d066de0dd6fd8ba3247 (diff)
downloadgdb-4e67d4ca2a172339a5899ae47a065e61d1a13e69.zip
gdb-4e67d4ca2a172339a5899ae47a065e61d1a13e69.tar.gz
gdb-4e67d4ca2a172339a5899ae47a065e61d1a13e69.tar.bz2
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): limits fixed. ld/testsuite/ * ld-arm/arm-elf.exp (armelftests): New test case added. * ld-arm/reloc-boundaries.s: New file. * ld-arm/reloc-boundaries.d: New file.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-arm/arm-elf.exp5
-rw-r--r--ld/testsuite/ld-arm/reloc-boundaries.d6
-rw-r--r--ld/testsuite/ld-arm/reloc-boundaries.s5
4 files changed, 21 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0193e82..fff9ac6 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2009-12-28 Daniel Gutson <dgutson@codesourcery.com>
+ * ld-arm/arm-elf.exp (armelftests): New test case added.
+ * ld-arm/reloc-boundaries.s: New file.
+ * ld-arm/reloc-boundaries.d: New file.
+
+2009-12-28 Daniel Gutson <dgutson@codesourcery.com>
+
* ld-arm/arm-elf.exp: Run missing test
from a previous commit (callweak-2).
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index 18b288f..ce8e9ee 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -58,7 +58,7 @@ if { ![is_elf_format] || ![istarget "arm*-*-*"] } {
return
}
-# List contains test-items with 3 items followed by 2 lists:
+# List contains test-items with 3 items followed by 2 lists and one more item:
# 0:name 1:ld options 2:assembler options
# 3:filenames of assembler files 4: action and options. 5: name of output file
@@ -236,6 +236,9 @@ set armelftests {
{"callweak-2" "-static -T arm.ld" "" {callweak-2.s}
{{objdump -dr callweak-2.d}}
"callweak-2"}
+ {"Relocation boundaries" "-defsym x=0 -defsym y=0 -defsym _start=0" "" {reloc-boundaries.s}
+ {{objdump -s reloc-boundaries.d}}
+ "reloc-boundaries"}
}
run_ld_link_tests $armelftests
diff --git a/ld/testsuite/ld-arm/reloc-boundaries.d b/ld/testsuite/ld-arm/reloc-boundaries.d
new file mode 100644
index 0000000..dcdefd9
--- /dev/null
+++ b/ld/testsuite/ld-arm/reloc-boundaries.d
@@ -0,0 +1,6 @@
+
+[^:]*: file format elf32-(little|big)arm
+
+Contents of section .text:
+ 8000 80ff0080 ffff ......
+#...
diff --git a/ld/testsuite/ld-arm/reloc-boundaries.s b/ld/testsuite/ld-arm/reloc-boundaries.s
new file mode 100644
index 0000000..7e65bc0
--- /dev/null
+++ b/ld/testsuite/ld-arm/reloc-boundaries.s
@@ -0,0 +1,5 @@
+.syntax unified
+ .byte x -128
+ .byte x +255
+ .short y -32768
+ .short y +65535