PR gas/6607
authorHans-Peter Nilsson <hp@axis.com>
Mon, 16 Jun 2008 15:07:01 +0000 (15:07 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 16 Jun 2008 15:07:01 +0000 (15:07 +0000)
* ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d,
ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s,
ld-mmix/loc9m.d: New tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-mmix/loc10.d [new file with mode: 0644]
ld/testsuite/ld-mmix/loc10.s [new file with mode: 0644]
ld/testsuite/ld-mmix/loc10m.d [new file with mode: 0644]
ld/testsuite/ld-mmix/loc8.d [new file with mode: 0644]
ld/testsuite/ld-mmix/loc8.s [new file with mode: 0644]
ld/testsuite/ld-mmix/loc8m.d [new file with mode: 0644]
ld/testsuite/ld-mmix/loc9.d [new file with mode: 0644]
ld/testsuite/ld-mmix/loc9.s [new file with mode: 0644]
ld/testsuite/ld-mmix/loc9m.d [new file with mode: 0644]

index 5f774b20e4d187005b927d34dda28a5bb836eada..4b36184e1d21588e54558c99d34fca54dc28b39a 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       PR gas/6607
+       * ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d,
+       ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s,
+       ld-mmix/loc9m.d: New tests.
+
 2008-06-12  Nick Clifton  <nickc@redhat.com>
 
        * ld-scripts/overlay-size.t (end_of_bss_overlays): Define.
diff --git a/ld/testsuite/ld-mmix/loc10.d b/ld/testsuite/ld-mmix/loc10.d
new file mode 100644 (file)
index 0000000..84180b4
--- /dev/null
@@ -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 (file)
index 0000000..3d139d3
--- /dev/null
@@ -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 (file)
index 0000000..509f151
--- /dev/null
@@ -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 (file)
index 0000000..ac68990
--- /dev/null
@@ -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 (file)
index 0000000..28592f9
--- /dev/null
@@ -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 (file)
index 0000000..52fb079
--- /dev/null
@@ -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 (file)
index 0000000..458fef6
--- /dev/null
@@ -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 (file)
index 0000000..99a5c5d
--- /dev/null
@@ -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 (file)
index 0000000..be2beff
--- /dev/null
@@ -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                             .*