aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-06-29 21:33:28 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-06-29 21:33:28 +0000
commit9f6067066d03beb6a208bbbf2741bbf0b8a1bce8 (patch)
treeb2c49863370b77b67b48ef33c58c3a4559f78cd1 /ld/testsuite
parent2916066e22319c48d1598654ed0f769ea6f1e71c (diff)
downloadgdb-9f6067066d03beb6a208bbbf2741bbf0b8a1bce8.zip
gdb-9f6067066d03beb6a208bbbf2741bbf0b8a1bce8.tar.gz
gdb-9f6067066d03beb6a208bbbf2741bbf0b8a1bce8.tar.bz2
* ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
ld-mmix/sec-8b.s, ld-mmix/sec-8d.s: New test.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-mmix/sec-8a.s4
-rw-r--r--ld/testsuite/ld-mmix/sec-8b.s4
-rw-r--r--ld/testsuite/ld-mmix/sec-8d.s4
-rw-r--r--ld/testsuite/ld-mmix/sec-8m.d30
-rw-r--r--ld/testsuite/ld-mmix/sec-8m.s4
6 files changed, 51 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index efeec75..f76f116 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
+ ld-mmix/sec-8b.s, ld-mmix/sec-8d.s: New test.
+
2002-06-18 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/empic2-ref.s: Add a missing .end, apparently
diff --git a/ld/testsuite/ld-mmix/sec-8a.s b/ld/testsuite/ld-mmix/sec-8a.s
new file mode 100644
index 0000000..4ac94f7
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-8a.s
@@ -0,0 +1,4 @@
+ .section .text.1
+ .byte 42
+ .space 32759
+ .byte 43
diff --git a/ld/testsuite/ld-mmix/sec-8b.s b/ld/testsuite/ld-mmix/sec-8b.s
new file mode 100644
index 0000000..17eb415
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-8b.s
@@ -0,0 +1,4 @@
+ .section .text.1
+ .byte 44
+ .space 32764
+ .byte 45
diff --git a/ld/testsuite/ld-mmix/sec-8d.s b/ld/testsuite/ld-mmix/sec-8d.s
new file mode 100644
index 0000000..0eb5b56
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-8d.s
@@ -0,0 +1,4 @@
+ .section .text.1
+ .byte 48
+ .space 32766
+ .byte 49
diff --git a/ld/testsuite/ld-mmix/sec-8m.d b/ld/testsuite/ld-mmix/sec-8m.d
new file mode 100644
index 0000000..32630e5
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-8m.d
@@ -0,0 +1,30 @@
+#source: start.s
+#source: sec-8a.s
+#source: sec-8b.s
+#source: sec-8m.s
+#source: sec-8d.s
+#ld: -m mmo
+#objdump: -s
+
+# Distantly related to sec-7m.s in that section lengths mattered for the
+# bug. When one input-section (seen in mmo.c as a chunk of data to
+# output) had a length not a multiple of four, the last bytes were saved
+# to be concatenated with the next chunk. If it was followed by a chunk
+# with a leading multiple-of-four number of zero bytes, those zero bytes
+# would be omitted, and the "saved" bytes would be concatenated with the
+# following (not-all-zeros) bytes. Hence a shift of the last bytes of the
+# first chunk. Note that the section will be padded in the output.
+
+.*: file format mmo
+
+Contents of section \.text:
+ 0000 e3fd0001 2a000000 00000000 00000000 .*
+#...
+ 7ff0 00000000 00000000 00000000 2b2c0000 .*
+#...
+ fff0 00000000 00000000 00002d00 00000000 .*
+ 10000 00000000 00000000 0000002e 2f303132 .*
+ 10010 33000000 00000000 00000000 00000000 .*
+ 10020 00300000 00000000 00000000 00000000 .*
+#...
+ 18020 31000000 .*
diff --git a/ld/testsuite/ld-mmix/sec-8m.s b/ld/testsuite/ld-mmix/sec-8m.s
new file mode 100644
index 0000000..dc695da
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-8m.s
@@ -0,0 +1,4 @@
+ .section .text.1
+ .byte 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0
+ .byte 46, 47, 48, 49, 50, 51
+ .byte 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0