1PHDRS
2{
3  text PT_LOAD FILEHDR PHDRS ;
4  note PT_NOTE;
5}
6SECTIONS
7{
8  . = . + SIZEOF_HEADERS ;
9  .text : { *(.text) *(.rodata) } :text
10  .note : { *(.note) } :note :text
11
12  /* BUG:  This linker script is broken here.  It has not reset the
13     output segment for the following sections, so they are all
14     treated as notes...   */
15  
16  .hash : { *(.hash) }
17  .gnu.hash : { *(.gnu.hash) }
18  
19  .dynstr : { *(.dynstr) }
20  .dynsym : { *(.dynsym) }
21  .got : { *(.got .toc) *(.igot) }
22  .got.plt : { *(.got.plt) *(.igot.plt) }
23  /DISCARD/ : { *(*) }
24}
25