summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/ascii.t
blob: 6f682fabd384b042da5fab1f13560353763266f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
_start = 0x000000;

SECTIONS
{
  . = 0x1000 + SIZEOF_HEADERS;

  .header ALIGN (0x100) (READONLY) :
    {
      ASCII (16) "program name"
      ASCII (64) "empty"
      ASCII (4 * 8) "comment 1\n"
      ASCII (32) "comment 2\n"
      ASCII (32) "comment 3\n"
      ASCII (24) "comment 4\n"
      ASCII (64) "I meant to say: This is way too long"
    }

  .text ALIGN (0x100) :
  {
      entry = .;
      *(.text)
  }

  .data : AT (0x400000)
  {
	*(.data)
  }
  
  . = ALIGN(0x20);
  
  .bss :
  {
	*(.bss)
  }

  /DISCARD/ : { *(*) }
}