shadeos/src/linker.ld

32 lines
394 B
Plaintext
Raw Normal View History

2022-05-13 03:08:46 +00:00
ENTRY(_start)
SECTIONS
{
. = 1M;
/* MB header */
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
*(.text)
}
/* Read-only data. */
.rodata BLOCK(4K) : ALIGN(4K)
{
*(.rodata)
}
/* Read-write data (initialized) */
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
}
/* Read-write data (uninitialized) and stack */
.bss BLOCK(4K) : ALIGN(4K)
{
*(COMMON)
*(.bss)
}
}