aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/size-2.t
blob: c3c4eddab4c2422a7fb7f296083bf0ee2bc2d472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PHDRS
{
  header PT_PHDR PHDRS ;
	 
  image PT_LOAD FLAGS (5) PHDRS;
  tls PT_TLS FLAGS (4);
  
}
SECTIONS
{
  .text 0x100 : { *(.text) } :image
  .tdata : { *(.tdata) } :image :tls
  .tbss : { *(.tbss) } :image : tls
  .map : {
    LONG (SIZEOF (.text))
    LONG (SIZEOF (.data))
    LONG (SIZEOF (.bss))
    LONG (SIZEOF (.tdata))
    LONG (SIZEOF (.tbss))
  } :image
  /DISCARD/ : { *(.note.gnu.property) }
}