summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/sh64/init-media.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-sh/sh64/init-media.d')
-rw-r--r--ld/testsuite/ld-sh/sh64/init-media.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/sh64/init-media.d b/ld/testsuite/ld-sh/sh64/init-media.d
new file mode 100644
index 0000000..56c6c19
--- /dev/null
+++ b/ld/testsuite/ld-sh/sh64/init-media.d
@@ -0,0 +1,14 @@
+#source: init.s
+#as: --abi=32 --isa=SHmedia
+#ld: -shared -mshelf32
+#readelf: -d
+#target: sh64-*-elf
+
+# Make sure that the lsb of DT_INIT and DT_FINI entries is set
+# when _init and _fini are SHmedia code.
+
+.*
+ Tag Type Name/Value
+ 0x0000000c \(INIT\) .*[13579bdf]
+ 0x0000000d \(FINI\) .*[13579bdf]
+#pass