Linker script

This commit is contained in:
Gitea 2020-12-01 21:01:11 -06:00
parent aa9836f209
commit da7123e518
1 changed files with 24 additions and 0 deletions

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)
}
}