aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-discard/zero-range.d8
-rw-r--r--ld/testsuite/ld-discard/zero-range.s13
3 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index dbb22bd..d047362 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-25 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * ld-discard/zero-range.d, ld-discard/zero-range.s: New files.
+
2010-10-23 Mark Mitchell <mark@codesourcery.com>
* ld-elf/group10.d: Expect ".group" for the name of group
diff --git a/ld/testsuite/ld-discard/zero-range.d b/ld/testsuite/ld-discard/zero-range.d
new file mode 100644
index 0000000..26b709e
--- /dev/null
+++ b/ld/testsuite/ld-discard/zero-range.d
@@ -0,0 +1,8 @@
+#source: zero-range.s
+#ld: -T discard.ld
+#objdump: -s -j .debug_ranges
+
+.*: file format .*elf.*
+
+Contents of section .debug_ranges:
+ 0000 (01)?000000(01)? (01)?000000(01)? 00000000 00000000 .*
diff --git a/ld/testsuite/ld-discard/zero-range.s b/ld/testsuite/ld-discard/zero-range.s
new file mode 100644
index 0000000..e16caf4
--- /dev/null
+++ b/ld/testsuite/ld-discard/zero-range.s
@@ -0,0 +1,13 @@
+ .text
+ .globl _start
+_start:
+
+ .section .debug_ranges
+ .long .Ltext
+ .long .Ltext + 2
+ .long 0
+ .long 0
+
+ .section .text.exit,"ax"
+.Ltext:
+ .long 0