summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/pr14962.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/pr14962.t')
-rw-r--r--ld/testsuite/ld-scripts/pr14962.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/pr14962.t b/ld/testsuite/ld-scripts/pr14962.t
new file mode 100644
index 0000000..f399acd
--- /dev/null
+++ b/ld/testsuite/ld-scripts/pr14962.t
@@ -0,0 +1,8 @@
+NOCROSSREFS ( .text .data )
+x = ABSOLUTE(x);
+SECTIONS
+{
+ .text : { *(.text) }
+ .data : { *(.data) }
+ /DISCARD/ : { *(*) }
+}