aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/phdrs3.t
blob: 4bd4e858cf0f6a5e262045e5be2b0648c108c1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PHDRS
{
  data PT_LOAD ;
  header PT_PHDR PHDRS ; /* OK */
  text PT_LOAD FILEHDR PHDRS ;
}

SECTIONS
{
  /* This test will fail on architectures where the startaddress below
     is less than the constant MAXPAGESIZE.  */
  . = 0x800000 + SIZEOF_HEADERS;
  .text : { *(.text) } :text
  .data : { *(.data) } :data
  /DISCARD/ : { *(.*) }
}