finix/kernel/linker.ld

41 lines
557 B
Text
Raw Normal View History

2023-07-16 06:54:32 +00:00
ENTRY(start)
SECTIONS {
2023-07-17 04:09:26 +00:00
. = 0x00100000;
2023-07-16 06:54:32 +00:00
kernel_start = .;
2023-07-17 04:09:26 +00:00
.multiboot.data : {
*(.multiboot.data)
}
.multiboot.text : {
*(.multiboot.text)
}
. += 0xC0000000;
2023-07-16 06:54:32 +00:00
2023-07-17 04:09:26 +00:00
.text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
*(.text)
}
2023-07-17 04:09:26 +00:00
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
*(.rodata)
}
2023-07-17 04:09:26 +00:00
.data ALIGN (4K) : AT (ADDR (.data) - 0xC0000000)
2023-07-16 06:54:32 +00:00
{
2023-07-17 04:09:26 +00:00
*(.data)
}
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000)
{
*(COMMON)
2023-07-16 06:54:32 +00:00
*(.bss)
2023-07-17 04:09:26 +00:00
*(.bootstrap_stack)
2023-07-16 06:54:32 +00:00
}
2023-07-17 04:09:26 +00:00
2023-07-16 06:54:32 +00:00
kernel_end = .;
}