Back to index

cell-binutils  2.17cvs20070401
sec-5.d
Go to the documentation of this file.
00001 #source: b-twoinsn.s
00002 #source: b-offloc.s
00003 #source: b-post1.s
00004 #source: b-goodmain.s
00005 #ld: --oformat binary
00006 #objdump: -sh
00007 
00008 # Check that sections are automatically created to cope with contents at
00009 # unexpected addresses when an mmo is read in.  We used to do this by
00010 # e.g. linking .text at an unexpected address, like in sec-9.d.  That no
00011 # longer works, because .text and .data now gets section descriptors at
00012 # mmo output when the address and contents doesn't trivially reflect the
00013 # section contents at link time.  To test, we instead read in an mmo
00014 # formed from a link to binary format, like the b-*.d tests for mmo
00015 # execution paths.
00016 
00017 .*:     file format mmo
00018 
00019 Sections:
00020 Idx Name          Size      VMA               LMA               File off  Algn
00021   0 \.text         0+8  0+  0+  0+  2\*\*2
00022                   CONTENTS, ALLOC, LOAD, CODE
00023   1 \.MMIX\.sec\.0   0+10  789abcdef0123458  789abcdef0123458  0+  2\*\*2
00024                   CONTENTS, ALLOC, LOAD
00025 Contents of section \.text:
00026  0+ e3fd0001 e3fd0004                  .*
00027 Contents of section \.MMIX\.sec\.0:
00028  789abcdef0123458 b045197d 2c1b03b2 e4dbf877 0fc766fb  .*