blob: 5eed368dd11956734fc8cad9b05d87273014f315 [file] [log] [blame]
PHDRS
{
text PT_LOAD FLAGS(5);
data PT_LOAD FLAGS(6);
}
SECTIONS
{
.text : {
*(.init)
*(.text)
*(.text.*)
} :text
. = ALIGN(64K);
etext = .;
.opd : { *(.opd) }
. = ALIGN(16);
.dynamic : {
dynamic_start = .;
*(.dynamic)
}
.dynsym : {
dynsym_start = .;
*(.dynsym)
}
.rela.dyn : { *(.rela*) }
. = ALIGN(16);
.data : {
*(.data)
*(.data.rel*)
} :data
. = ALIGN(16);
.rodata : {
*(.rodata)
*(.rodata.*)
} :data
. = ALIGN(16);
.bss : { *(.bss) }
. = ALIGN(256);
/*
* tocptr is tocbase + 32K, allowing toc offsets to be +-32K
*/
tocptr = . + 32K;
.got : { *(.toc) *(.got) }
. = ALIGN(64K);
edata = .;
. += 64K;
. = ALIGN(64K);
/*
* stackptr set with initial stack frame (64 bytes) preallocated
*/
stackptr = . - 64;
stacktop = .;
}
ENTRY(start)