sec-5.d 1.1 KB

12345678910111213141516171819202122232425262728
  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
  7. # Check that sections are automatically created to cope with contents at
  8. # unexpected addresses when an mmo is read in. We used to do this by
  9. # e.g. linking .text at an unexpected address, like in sec-9.d. That no
  10. # longer works, because .text and .data now gets section descriptors at
  11. # mmo output when the address and contents doesn't trivially reflect the
  12. # section contents at link time. To test, we instead read in an mmo
  13. # formed from a link to binary format, like the b-*.d tests for mmo
  14. # execution paths.
  15. .*: file format mmo
  16. Sections:
  17. Idx Name Size VMA LMA File off Algn
  18. 0 \.text 0+8 0+ 0+ 0+ 2\*\*2
  19. CONTENTS, ALLOC, LOAD, CODE
  20. 1 \.MMIX\.sec\.0 0+10 789abcdef0123458 789abcdef0123458 0+ 2\*\*2
  21. CONTENTS, ALLOC, LOAD
  22. Contents of section \.text:
  23. 0+ e3fd0001 e3fd0004 .*
  24. Contents of section \.MMIX\.sec\.0:
  25. 789abcdef0123458 b045197d 2c1b03b2 e4dbf877 0fc766fb .*