summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix/sec-5.d
blob: 9595811e1e647f7bf3b33cbe9b16e5f1ed8c20fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#source: start.s
#ld: -m mmo -T $srcdir/$subdir/mmosec2.ld
#objdump: -sh

# Check that sections are automatically created to cope with contents at
# unexpected addresses.  We do this by linking .text at an unexpected
# address.  As .text (like .data) does not get a section descriptor, the
# output gets a LOP_LOC at an unexpected address, and a unique section is
# created.  This test will have to be changed if .text gets a section
# descriptor if linked to an unexpected address.

.*:     file format mmo

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 \.text         0+  0+  0+  0+  2\*\*2
                  
  1 \.MMIX\.sec\.0   0+4  1000000000000000  1000000000000000  0+  2\*\*2
                  CONTENTS, ALLOC, LOAD
Contents of section \.MMIX\.sec\.0:
 0000 e3fd0001                             .*