2011-06-10 22:04:25 +08:00
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
text PT_LOAD FILEHDR PHDRS ;
|
|
|
|
note PT_NOTE;
|
|
|
|
}
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = . + SIZEOF_HEADERS ;
|
|
|
|
.text : { *(.text) *(.rodata) } :text
|
|
|
|
.note : { *(.note) } :note :text
|
|
|
|
|
|
|
|
/* BUG: This linker script is broken here. It has not reset the
|
|
|
|
output segment for the following sections, so they are all
|
|
|
|
treated as notes... */
|
|
|
|
|
|
|
|
.hash : { *(.hash) }
|
2017-08-08 05:45:29 +08:00
|
|
|
.gnu.hash : { *(.gnu.hash) }
|
2011-06-10 22:04:25 +08:00
|
|
|
|
|
|
|
.dynstr : { *(.dynstr) }
|
|
|
|
.dynsym : { *(.dynsym) }
|
2017-11-14 16:17:34 +08:00
|
|
|
.got : { *(.got .toc) *(.igot) }
|
2011-06-10 22:04:25 +08:00
|
|
|
.got.plt : { *(.got.plt) *(.igot.plt) }
|
|
|
|
/DISCARD/ : { *(*) }
|
|
|
|
}
|