summaryrefslogtreecommitdiff
path: root/tests/phdr-corruption.ld
blob: 6cf322cc029a49d4d09bfe62d78b8bcfe43cdd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PHDRS
{
  headers PT_PHDR PHDRS;
  text PT_LOAD FILEHDR PHDRS;
  interp PT_INTERP ;
}

SECTIONS
{
  . = SIZEOF_HEADERS;
  . = ALIGN(4);

  . = . + 0x1000;
  .interp : { *(.interp) } :text :interp
  .text : { *(.text) } :text
}