Commit | Line | Data |
---|---|---|
894891db NC |
1 | PHDRS |
2 | { | |
3 | text PT_LOAD FILEHDR PHDRS ; | |
4 | note PT_NOTE; | |
5 | } | |
6 | SECTIONS | |
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) } | |
8f5e83fb | 17 | .gnu.hash : { *(.gnu.hash) } |
894891db NC |
18 | |
19 | .dynstr : { *(.dynstr) } | |
20 | .dynsym : { *(.dynsym) } | |
06bcf541 | 21 | .got : { *(.got .toc) *(.igot) } |
894891db NC |
22 | .got.plt : { *(.got.plt) *(.igot.plt) } |
23 | /DISCARD/ : { *(*) } | |
24 | } |