Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-mmix / sec-5.d
blob24aa0e199898d81c4099e970410be91ecb827e3b
1 #source: b-twoinsn.s
2 #source: b-offloc.s
3 #source: b-post1.s
4 #source: b-goodmain.s
5 #ld: --oformat binary
6 #objdump: -sh
8 # Check that sections are automatically created to cope with contents at
9 # unexpected addresses when an mmo is read in. We used to do this by
10 # e.g. linking .text at an unexpected address, like in sec-9.d. That no
11 # longer works, because .text and .data now gets section descriptors at
12 # mmo output when the address and contents doesn't trivially reflect the
13 # section contents at link time. To test, we instead read in an mmo
14 # formed from a link to binary format, like the b-*.d tests for mmo
15 # execution paths.
17 .*: file format mmo
19 Sections:
20 Idx Name Size VMA LMA File off Algn
21 0 \.text 0+8 0+ 0+ 0+ 2\*\*2
22 CONTENTS, ALLOC, LOAD, CODE
23 1 \.MMIX\.sec\.0 0+10 789abcdef0123458 789abcdef0123458 0+ 2\*\*2
24 CONTENTS, ALLOC, LOAD
25 Contents of section \.text:
26 0+ e3fd0001 e3fd0004 .*
27 Contents of section \.MMIX\.sec\.0:
28 789abcdef0123458 b045197d 2c1b03b2 e4dbf877 0fc766fb .*