]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-mmix/sec-1.d
ld: optionally emit _etext last, before .data
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-mmix / sec-1.d
CommitLineData
3c3bdf30
NC
1#source: sec-1.s
2#source: start.s
2e0a7632 3#ld: -m elf64mmix -u _etext -u _edata -u _end
3c3bdf30 4#objcopy_linked_file: -O mmo
2e0a7632 5#objdump: -sht
3c3bdf30 6
6a0db47a
HPN
7# Test conversion from ELF to mmo with non-mmo-sections present,
8# testing that support.
9
3c3bdf30
NC
10.*: file format mmo
11
12Sections:
13Idx Name Size VMA LMA File off Algn
14 0 \.text 0+4 0+ 0+ 0+ 2\*\*2
15 CONTENTS, ALLOC, LOAD, CODE
aab87437 16 1 secname 0+19 0+4 0+4 0+ 2\*\*2
6a0db47a 17 CONTENTS, ALLOC, LOAD, READONLY, CODE
aab87437
HPN
18 2 \.a\.fourth\.section 0+10 0+20 0+20 0+ 2\*\*2
19 CONTENTS, ALLOC, LOAD, READONLY, DATA
ccaf4e07 20 3 anothersec 0+13 2000000000000000 2000000000000000 0+ 2\*\*2
3c3bdf30 21 CONTENTS, ALLOC, LOAD, DATA
ccaf4e07 22 4 thirdsec 0+a 0+ 0+ 0+ 2\*\*2
3c3bdf30 23 CONTENTS, READONLY
2e0a7632
HPN
24
25SYMBOL TABLE:
26#...
4609ada4 270+30 g +\*ABS\* _etext
2e0a7632
HPN
28#...
292000000000000013 g +\*ABS\* __bss_start
302000000000000013 g +\*ABS\* _edata
312000000000000018 g +\*ABS\* _end
32
3c3bdf30
NC
33Contents of section \.text:
34 0000 e3fd0001 .*
3c3bdf30
NC
35Contents of section secname:
36 0004 00000001 00000002 00000003 00000004 .*
ccaf4e07 37 0014 ffffffff fffff827 50 .*
aab87437
HPN
38Contents of section \.a\.fourth\.section:
39 0020 00000000 0087a238 00000000 302a55a8 .*
3c3bdf30 40Contents of section anothersec:
5ff4a71e
HPN
41 2000000000000000 0000000a 00000009 00000008 00000007 .*
42 2000000000000010 252729 .*
3c3bdf30 43Contents of section thirdsec:
ccaf4e07 44 0000 00030d41 000186a2 2628 .*