Fix linker tests to work with 16-bit targets.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mmix / sec-5.d
index caeabaf9008dab48494832143db653e13280ca1b..24aa0e199898d81c4099e970410be91ecb827e3b 100644 (file)
@@ -1,21 +1,28 @@
-#source: start.s
-#ld: -m mmo -T $srcdir/$subdir/mmosec2.ld
+#source: b-twoinsn.s
+#source: b-offloc.s
+#source: b-post1.s
+#source: b-goodmain.s
+#ld: --oformat binary
 #objdump: -sh
 
 # Check that sections are automatically created to cope with contents at
-# unexpected addresses.  We do this by linking .text at an unexpected
-# address.  As .text (like .data) does not get a section descriptor, the
-# output gets a LOP_LOC at an unexpected address, and a unique section is
-# created.  This test will have to be changed if .text gets a section
-# descriptor if linked to an unexpected address.
+# unexpected addresses when an mmo is read in.  We used to do this by
+# e.g. linking .text at an unexpected address, like in sec-9.d.  That no
+# longer works, because .text and .data now gets section descriptors at
+# mmo output when the address and contents doesn't trivially reflect the
+# section contents at link time.  To test, we instead read in an mmo
+# formed from a link to binary format, like the b-*.d tests for mmo
+# execution paths.
 
 .*:     file format mmo
 
 Sections:
 Idx Name          Size      VMA               LMA               File off  Algn
-  0 \.text         0+  0+  0+  0+  2\*\*2
-
-  1 \.MMIX\.sec\.0   0+4  1000000000000000  1000000000000000  0+  2\*\*2
+  0 \.text         0+8  0+  0+  0+  2\*\*2
+                  CONTENTS, ALLOC, LOAD, CODE
+  1 \.MMIX\.sec\.0   0+10  789abcdef0123458  789abcdef0123458  0+  2\*\*2
                   CONTENTS, ALLOC, LOAD
+Contents of section \.text:
+ 0+ e3fd0001 e3fd0004                  .*
 Contents of section \.MMIX\.sec\.0:
0000 e3fd0001                             .*
789abcdef0123458 b045197d 2c1b03b2 e4dbf877 0fc766fb  .*
This page took 0.024168 seconds and 4 git commands to generate.