aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/sec-9.d
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-10-24 21:39:30 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-10-24 21:39:30 +0000
commit1fddb8daadfc2368d8e5aa5e6041d44db0884a79 (patch)
treef50cf7abbc5a53461e86167b19d3530289a02074 /ld/testsuite/ld-mmix/sec-9.d
parented0403211c2f8f10191898b627cb29e65c612942 (diff)
downloadgdb-1fddb8daadfc2368d8e5aa5e6041d44db0884a79.zip
gdb-1fddb8daadfc2368d8e5aa5e6041d44db0884a79.tar.gz
gdb-1fddb8daadfc2368d8e5aa5e6041d44db0884a79.tar.bz2
* ld-mmix/sec-8m.d: Adjust test for dump using correct section
length. * ld-mmix/sec-9.d: Renamed test, formerly known as sec-5.d. * ld-mmix/sec-5.d, ld-mmix/b-offloc.s: Rewritten test.
Diffstat (limited to 'ld/testsuite/ld-mmix/sec-9.d')
-rw-r--r--ld/testsuite/ld-mmix/sec-9.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mmix/sec-9.d b/ld/testsuite/ld-mmix/sec-9.d
new file mode 100644
index 0000000..4bddc35
--- /dev/null
+++ b/ld/testsuite/ld-mmix/sec-9.d
@@ -0,0 +1,19 @@
+#source: start.s
+#ld: -m mmo -T $srcdir/$subdir/mmosec2.ld
+#objdump: -sh
+
+# This is based on sec-5.d which used to link .text at an unexpected
+# address to check that a special section was created in objdump when
+# reading in contents at an unusual location without a proper section
+# descriptor. As .text (like .data) now gets a section descriptor when
+# linked to an unexpected location, the old test is transformed into a
+# specific check that the section description for .text works.
+
+.*: file format mmo
+
+Sections:
+Idx Name Size VMA LMA File off Algn
+ 0 \.text 0+4 1000000000000000 1000000000000000 0+ 2\*\*2
+ CONTENTS, ALLOC, LOAD, READONLY, CODE
+Contents of section \.text:
+ 1000000000000000 e3fd0001 .*