aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-unique/pr21529.d2
-rw-r--r--ld/testsuite/ld-unique/pr21529.ld5
3 files changed, 11 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c3219bf..425a46f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/ld-unique/pr21529.ld: New test linker script.
+ * testsuite/ld-unique/pr21529.d: Use it.
+
2017-07-12 Alan Modra <amodra@gmail.com>
* po/bg.po: Update from translationproject.org/latest/ld/.
diff --git a/ld/testsuite/ld-unique/pr21529.d b/ld/testsuite/ld-unique/pr21529.d
index 1bcd4fe..bc4763d 100644
--- a/ld/testsuite/ld-unique/pr21529.d
+++ b/ld/testsuite/ld-unique/pr21529.d
@@ -1,4 +1,4 @@
-#ld: --oformat binary -e main
+#ld: --oformat binary -T pr21529.ld -e main
#objdump: -s -b binary
#xfail: aarch64*-*-* arm*-*-* hppa-*-* ia64-*-* nds32*-*-* score-*-*
diff --git a/ld/testsuite/ld-unique/pr21529.ld b/ld/testsuite/ld-unique/pr21529.ld
new file mode 100644
index 0000000..113e70b
--- /dev/null
+++ b/ld/testsuite/ld-unique/pr21529.ld
@@ -0,0 +1,5 @@
+SECTIONS
+{
+ .text : { *(.text) }
+ /DISCARD/ : { *(*) }
+}