Linker script

This commit is contained in:
Gitea 2020-12-01 21:01:11 -06:00
parent aa9836f209
commit da7123e518

24
arch/i386/linker.ld Executable file
View file

@ -0,0 +1,24 @@
ENTRY(_start)
SECTIONS
{
. = 1M;
.text BLOCK (4K) : ALIGN (4K) {
*(.multiboot)
*(.text)
}
.rodata BLOCK (4K) : ALIGN (4K) {
*(.rodata)
}
.data BLOCK (4K) : ALIGN (4K) {
*(.data)
}
.bss BLOCK (4K) : ALIGN (4K) {
*(COMMON)
*(.bss)
}
}