bond/scripts/linker.lds

36 lines
582 B
Plaintext
Raw Normal View History

2019-06-26 05:47:18 +00:00
#define ASM_FILE
#include <arch/mlayout.h>
ENTRY(arch_init_32)
SECTIONS
{
2019-12-07 08:54:18 +00:00
. = KERN_BASE_START + KERN_IMG_PADDR;
2019-06-26 05:47:18 +00:00
2019-12-07 08:54:18 +00:00
KERN_IMG_START = .;
.multiboot_header ALIGN(0x1000) : AT(ADDR(.multiboot_header) - KERN_BASE_START)
2019-06-26 05:47:18 +00:00
{
*(.multiboot_header)
}
2019-12-07 08:54:18 +00:00
.text ALIGN(0x1000) : AT(ADDR(.text) - KERN_BASE_START)
{
*(.text)
}
.data ALIGN(0x1000) : AT(ADDR(.data) - KERN_BASE_START)
{
*(.data)
*(.rodata*)
}
.bss ALIGN(0x1000) : AT(ADDR(.bss) - KERN_BASE_START)
{
*(.bss)
*(COMMON)
}
KERN_IMG_STOP = .;
2019-06-26 05:47:18 +00:00
}