aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/phdrs2.t
blob: bccbcecbc8cbc3b6a39386334362f1ff2f443403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PHDRS
{
  Foo PT_LOAD ;
  Bar PT_LOAD ;
}

SECTIONS
{
  . = 0x800000 - 1;
  /* The PHDRS generated should start at the aligned .foo section
     address, not the unaligned .empty section address */
  .empty : { 
	EMPTY_START = ABSOLUTE(.) ;
	*(.empty) 
	EMPTY_END = ABSOLUTE(.) ;
	} : Foo
  .foo : { *(.foo) } : Foo
  .bar : { *(.bar)
	LONG(EMPTY_START) ;
	 } : Bar
	
  /DISCARD/ : { *(.*) }
}