toaruos/linker/link.ld

46 lines
445 B
Plaintext
Raw Normal View History

2016-11-21 13:17:54 +03: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)
}
.eh_frame BLOCK(4K) : ALIGN(4K)
{
*(.eh_frame)
}
end = .;
/DISCARD/ :
{
*(.comment)
*(.note.gnu.build-id)
}
}