aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/persistent-sections-2.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/persistent-sections-2.d')
-rw-r--r--ld/testsuite/ld-elf/persistent-sections-2.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/persistent-sections-2.d b/ld/testsuite/ld-elf/persistent-sections-2.d
new file mode 100644
index 0000000..3778514
--- /dev/null
+++ b/ld/testsuite/ld-elf/persistent-sections-2.d
@@ -0,0 +1,10 @@
+#name: .persistent sections (ld -r)
+#ld: --orphan-handling=warn -e _start -r
+#source: persistent-sections.s
+#target: [supports_persistent_section]
+#readelf: -SW
+#warning_output: persistent-sections-2.l
+
+#...
+ +\[ *[0-9]+\] \.persistent +PROGBITS +[0-9a-f]+ +[0-9a-f]+ [0-9a-f]+ +00 +WA .*
+#pass