aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-14 15:56:13 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-03-14 15:56:13 +0000
commit3d3e6bc3f438c51ff235d6a454ee1010246e814a (patch)
tree5b62969cdec672136efbc1466f0826a88beea348 /ld
parente837f12a8d57a112a5ec40a3b3387aac3768c016 (diff)
downloadgdb-3d3e6bc3f438c51ff235d6a454ee1010246e814a.zip
gdb-3d3e6bc3f438c51ff235d6a454ee1010246e814a.tar.gz
gdb-3d3e6bc3f438c51ff235d6a454ee1010246e814a.tar.bz2
Add a testcase for PR ld/13839
2012-03-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/13839 * ld-elf/pr13839.d: New. * ld-elf/pr13839.s: Likewise. * ld-elf/pr13839.t: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-elf/pr13839.d6
-rw-r--r--ld/testsuite/ld-elf/pr13839.s10
-rw-r--r--ld/testsuite/ld-elf/pr13839.t9
4 files changed, 32 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 1e3c5c1..a17d081 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/13839
+ * ld-elf/pr13839.d: New.
+ * ld-elf/pr13839.s: Likewise.
+ * ld-elf/pr13839.t: Likewise.
+
2012-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13817
diff --git a/ld/testsuite/ld-elf/pr13839.d b/ld/testsuite/ld-elf/pr13839.d
new file mode 100644
index 0000000..fc63a90
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr13839.d
@@ -0,0 +1,6 @@
+#ld: -T pr13839.t
+#nm: -n
+
+#...
+[0-9a-f]+ T _text
+#pass
diff --git a/ld/testsuite/ld-elf/pr13839.s b/ld/testsuite/ld-elf/pr13839.s
new file mode 100644
index 0000000..3d132f6
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr13839.s
@@ -0,0 +1,10 @@
+ .text
+ .globl main
+ .globl start
+ .globl _start
+ .globl __start
+main:
+start:
+_start:
+__start:
+ .byte 0
diff --git a/ld/testsuite/ld-elf/pr13839.t b/ld/testsuite/ld-elf/pr13839.t
new file mode 100644
index 0000000..6baa228
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr13839.t
@@ -0,0 +1,9 @@
+SECTIONS {
+ .text : {
+ _text = .;
+ *(.text)
+ }
+ _end = .;
+ /DISCARD/ : { *(.*) }
+}
+. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo");