toaruos/linker/link.ld

48 lines
516 B
Plaintext
Raw Normal View History

2016-11-21 13:17:54 +03:00
ENTRY(_start)
SECTIONS
{
. = 0x3F000000;
phys = .;
.text BLOCK(4K) : ALIGN(4K)
{
code = .;
*(.text)
}
.rodata BLOCK(4K) : ALIGN(4K)
{
*(.rodata)
}
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
}
.bss BLOCK(4K) : ALIGN(4K)
{
*(COMMON)
*(.bss)
}
2021-05-31 04:47:02 +03:00
.eh_frame BLOCK(4K) : ALIGN(4K) {
2016-11-21 13:17:54 +03:00
*(.eh_frame)
}
2021-05-31 04:47:02 +03:00
.init_array : {
PROVIDE_HIDDEN (__init_array_start = .);
2022-01-23 04:36:46 +03:00
*(.init_array);
2021-05-31 04:47:02 +03:00
PROVIDE_HIDDEN (__init_array_end = .);
}
2016-11-21 13:17:54 +03:00
end = .;
/DISCARD/ :
{
*(.comment)
*(.note.gnu.build-id)
}
}