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