ladybird/Kernel/linker.ld

46 lines
822 B
Text
Raw Normal View History

ENTRY(start)
SECTIONS
{
. = 0xc0100000;
start_of_kernel_image = .;
.text ALIGN(4K) : AT (ADDR(.text) - 0xc0000000)
2020-01-16 08:46:09 +00:00
{
Arch/i386/Boot/boot.ao
2020-01-16 08:46:09 +00:00
*(.multiboot)
start_of_kernel_text = .;
2020-01-16 08:46:09 +00:00
*(.text)
*(.text.startup)
end_of_kernel_text = .;
2020-01-16 08:46:09 +00:00
}
.rodata ALIGN(4K) : AT (ADDR(.rodata) - 0xc0000000)
2020-01-16 08:46:09 +00:00
{
start_ctors = .;
*(.ctors)
end_ctors = .;
2020-01-16 08:46:09 +00:00
*(.rodata)
}
.data ALIGN(4K) : AT (ADDR(.data) - 0xc0000000)
2020-01-16 08:46:09 +00:00
{
start_of_kernel_data = .;
2020-01-16 08:46:09 +00:00
*(.data)
end_of_kernel_data = .;
2020-01-16 08:46:09 +00:00
}
.bss ALIGN(4K) : AT (ADDR(.bss) - 0xc0000000)
2020-01-16 08:46:09 +00:00
{
start_of_kernel_bss = .;
*(page_tables)
2020-01-16 08:46:09 +00:00
*(COMMON)
*(.bss)
end_of_kernel_bss = .;
2020-01-16 08:46:09 +00:00
}
end_of_kernel_image = .;
}