summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/sh64/init64.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-sh/sh64/init64.d')
-rw-r--r--ld/testsuite/ld-sh/sh64/init64.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/sh64/init64.d b/ld/testsuite/ld-sh/sh64/init64.d
new file mode 100644
index 0000000..01c8e97
--- /dev/null
+++ b/ld/testsuite/ld-sh/sh64/init64.d
@@ -0,0 +1,14 @@
+#source: init.s
+#as: --abi=64
+#ld: -shared -mshelf64
+#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
+ 0x000000000000000c \(INIT\) .*[13579bdf]
+ 0x000000000000000d \(FINI\) .*[13579bdf]
+#pass