aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mmix')
-rw-r--r--ld/testsuite/ld-mmix/loc10.d13
-rw-r--r--ld/testsuite/ld-mmix/loc10.s1
-rw-r--r--ld/testsuite/ld-mmix/loc10m.d10
-rw-r--r--ld/testsuite/ld-mmix/loc8.d13
-rw-r--r--ld/testsuite/ld-mmix/loc8.s3
-rw-r--r--ld/testsuite/ld-mmix/loc8m.d10
-rw-r--r--ld/testsuite/ld-mmix/loc9.d13
-rw-r--r--ld/testsuite/ld-mmix/loc9.s3
-rw-r--r--ld/testsuite/ld-mmix/loc9m.d14
9 files changed, 80 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mmix/loc10.d b/ld/testsuite/ld-mmix/loc10.d
new file mode 100644
index 0000000..84180b4
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc10.d
@@ -0,0 +1,13 @@
+#ld: -m elf64mmix --defsym __.MMIX.start..text=0x8000000000000000
+#objdump: -str
+
+# Setting file start through the special symbol.
+
+.*: file format elf64-mmix
+
+SYMBOL TABLE:
+#...
+8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*
diff --git a/ld/testsuite/ld-mmix/loc10.s b/ld/testsuite/ld-mmix/loc10.s
new file mode 100644
index 0000000..3d139d3
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc10.s
@@ -0,0 +1 @@
+Boot GETA $0,Boot %set dynamic- and forced-trap handler
diff --git a/ld/testsuite/ld-mmix/loc10m.d b/ld/testsuite/ld-mmix/loc10m.d
new file mode 100644
index 0000000..509f151
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc10m.d
@@ -0,0 +1,10 @@
+#source: loc10.s
+#ld: -m mmo --defsym __.MMIX.start..text=0x8000000000000000
+#objdump: -str
+
+# Setting file start through the special symbol, mmo version.
+
+.*: file format mmo
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*
diff --git a/ld/testsuite/ld-mmix/loc8.d b/ld/testsuite/ld-mmix/loc8.d
new file mode 100644
index 0000000..ac68990
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc8.d
@@ -0,0 +1,13 @@
+#ld: -m elf64mmix
+#objdump: -str
+
+# Setting file start through the special symbol, in-source.
+
+.*: file format elf64-mmix
+
+SYMBOL TABLE:
+#...
+8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*
diff --git a/ld/testsuite/ld-mmix/loc8.s b/ld/testsuite/ld-mmix/loc8.s
new file mode 100644
index 0000000..28592f9
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc8.s
@@ -0,0 +1,3 @@
+ .globl __.MMIX.start..text
+ .set __.MMIX.start..text,0x8000000000000000
+Boot GETA $0,Boot %set dynamic- and forced-trap handler
diff --git a/ld/testsuite/ld-mmix/loc8m.d b/ld/testsuite/ld-mmix/loc8m.d
new file mode 100644
index 0000000..52fb079
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc8m.d
@@ -0,0 +1,10 @@
+#source: loc8.s
+#ld: -m mmo
+#objdump: -str
+
+# Setting file start through the special symbol, in-source, mmo version.
+
+.*: file format mmo
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*
diff --git a/ld/testsuite/ld-mmix/loc9.d b/ld/testsuite/ld-mmix/loc9.d
new file mode 100644
index 0000000..458fef6
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc9.d
@@ -0,0 +1,13 @@
+#ld: -m elf64mmix
+#objdump: -str
+
+# Setting file start through the LOC pseudo, see PR 6607.
+
+.*: file format elf64-mmix
+
+SYMBOL TABLE:
+#...
+8000000000000000 g \*ABS\* 0+ __\.MMIX\.start\.\.text
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*
diff --git a/ld/testsuite/ld-mmix/loc9.s b/ld/testsuite/ld-mmix/loc9.s
new file mode 100644
index 0000000..99a5c5d
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc9.s
@@ -0,0 +1,3 @@
+ LOC #8000000000000000
+Boot GETA $0,Boot %set dynamic- and forced-trap handler
+ .globl Boot
diff --git a/ld/testsuite/ld-mmix/loc9m.d b/ld/testsuite/ld-mmix/loc9m.d
new file mode 100644
index 0000000..be2beff
--- /dev/null
+++ b/ld/testsuite/ld-mmix/loc9m.d
@@ -0,0 +1,14 @@
+#source: loc9.s
+#ld: -e Boot -m mmo
+#objdump: -str
+
+# Setting file start through the LOC pseudo, see PR 6607, mmo version.
+
+.*: file format mmo
+
+SYMBOL TABLE:
+#...
+8000000000000000 g \.text Boot
+#...
+Contents of section \.text:
+ 8000000000000000 f4000000 .*