Commit | Line | Data |
---|---|---|
1fddb8da HPN |
1 | #source: b-twoinsn.s |
2 | #source: b-offloc.s | |
3 | #source: b-post1.s | |
4 | #source: b-goodmain.s | |
5 | #ld: --oformat binary | |
3c3bdf30 NC |
6 | #objdump: -sh |
7 | ||
8 | # Check that sections are automatically created to cope with contents at | |
1fddb8da HPN |
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. | |
3c3bdf30 NC |
16 | |
17 | .*: file format mmo | |
18 | ||
19 | Sections: | |
20 | Idx Name Size VMA LMA File off Algn | |
1fddb8da HPN |
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 | |
3c3bdf30 | 24 | CONTENTS, ALLOC, LOAD |
1fddb8da HPN |
25 | Contents of section \.text: |
26 | 0+ e3fd0001 e3fd0004 .* | |
3c3bdf30 | 27 | Contents of section \.MMIX\.sec\.0: |
1fddb8da | 28 | 789abcdef0123458 b045197d 2c1b03b2 e4dbf877 0fc766fb .* |