aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr13839.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/pr13839.t')
-rw-r--r--ld/testsuite/ld-elf/pr13839.t9
1 files changed, 9 insertions, 0 deletions
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");