toaruos/linker/link.ld

50 lines
549 B
Plaintext
Raw Normal View History

2016-11-21 19:17:54 +09:00
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*
*/
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 10:47:02 +09:00
.eh_frame BLOCK(4K) : ALIGN(4K) {
2016-11-21 19:17:54 +09:00
*(.eh_frame)
}
2021-05-31 10:47:02 +09:00
.init_array : {
PROVIDE_HIDDEN (__init_array_start = .);
PROVIDE_HIDDEN (__init_array_end = .);
}
2016-11-21 19:17:54 +09:00
end = .;
/DISCARD/ :
{
*(.comment)
*(.note.gnu.build-id)
}
}