3 #ld
: -m elf64mmix
-u _etext
-u _edata
-u _end
4 #objcopy_linked_file
: -O mmo
7 # Test conversion from ELF to mmo
with non
-mmo
-sections present
,
8 # testing that support
.
13 Idx Name Size VMA LMA File off Algn
14 0 \
.text
0+4 0+ 0+ 0+ 2\
*\
*2
15 CONTENTS
, ALLOC
, LOAD
, CODE
16 1 secname
0+19 0+4 0+4 0+ 2\
*\
*2
17 CONTENTS
, ALLOC
, LOAD
, READONLY
, CODE
18 2 \
.a\
.fourth\
.section
0+10 0+20 0+20 0+ 2\
*\
*2
19 CONTENTS
, ALLOC
, LOAD
, READONLY
, DATA
20 3 anothersec
0+13 2000000000000000 2000000000000000 0+ 2\
*\
*2
21 CONTENTS
, ALLOC
, LOAD
, DATA
22 4 thirdsec
0+a
0+ 0+ 0+ 2\
*\
*2
27 0+1d g
+\
*ABS\
* _etext
29 2000000000000013 g
+\
*ABS\
* __bss_start
30 2000000000000013 g
+\
*ABS\
* _edata
31 2000000000000018 g
+\
*ABS\
* _end
33 Contents of section \
.text
:
35 Contents of section secname
:
36 0004 00000001 00000002 00000003 00000004 .*
37 0014 ffffffff fffff827
50 .*
38 Contents of section \
.a\
.fourth\
.section
:
39 0020 00000000 0087a238
00000000 302a55a8
.*
40 Contents of section anothersec
:
41 2000000000000000 0000000a
00000009 00000008 00000007 .*
42 2000000000000010 252729 .*
43 Contents of section thirdsec
:
44 0000 00030d41 000186a2
2628 .*