2019-04-01 21:43:07 +02:00
|
|
|
ENTRY(start)
|
2018-10-16 11:01:38 +02:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2020-01-17 19:59:20 +01:00
|
|
|
. = 0xc0100000;
|
2018-10-16 11:01:38 +02:00
|
|
|
|
2020-01-17 19:59:20 +01:00
|
|
|
start_of_kernel_image = .;
|
|
|
|
|
|
|
|
.text ALIGN(4K) : AT (ADDR(.text) - 0xc0000000)
|
2020-01-16 09:46:09 +01:00
|
|
|
{
|
2019-10-20 06:15:39 +00:00
|
|
|
Arch/i386/Boot/boot.ao
|
2020-01-16 09:46:09 +01:00
|
|
|
*(.multiboot)
|
2020-01-06 13:53:30 +01:00
|
|
|
start_of_kernel_text = .;
|
2020-01-16 09:46:09 +01:00
|
|
|
*(.text)
|
|
|
|
*(.text.startup)
|
2020-01-06 13:53:30 +01:00
|
|
|
end_of_kernel_text = .;
|
2020-01-16 09:46:09 +01:00
|
|
|
}
|
2018-10-16 11:01:38 +02:00
|
|
|
|
2020-01-17 19:59:20 +01:00
|
|
|
.rodata ALIGN(4K) : AT (ADDR(.rodata) - 0xc0000000)
|
2020-01-16 09:46:09 +01:00
|
|
|
{
|
|
|
|
start_ctors = .;
|
|
|
|
*(.ctors)
|
|
|
|
end_ctors = .;
|
2019-10-31 12:01:13 -06:00
|
|
|
|
2020-01-16 09:46:09 +01:00
|
|
|
*(.rodata)
|
|
|
|
}
|
2018-10-16 11:01:38 +02:00
|
|
|
|
2020-01-17 19:59:20 +01:00
|
|
|
.data ALIGN(4K) : AT (ADDR(.data) - 0xc0000000)
|
2020-01-16 09:46:09 +01:00
|
|
|
{
|
2020-01-06 13:53:30 +01:00
|
|
|
start_of_kernel_data = .;
|
2020-01-16 09:46:09 +01:00
|
|
|
*(.data)
|
2020-01-06 13:53:30 +01:00
|
|
|
end_of_kernel_data = .;
|
2020-01-16 09:46:09 +01:00
|
|
|
}
|
2018-10-16 11:01:38 +02:00
|
|
|
|
2020-01-17 19:59:20 +01:00
|
|
|
.bss ALIGN(4K) : AT (ADDR(.bss) - 0xc0000000)
|
2020-01-16 09:46:09 +01:00
|
|
|
{
|
2020-01-06 13:53:30 +01:00
|
|
|
start_of_kernel_bss = .;
|
2020-01-17 19:59:20 +01:00
|
|
|
*(page_tables)
|
2020-01-16 09:46:09 +01:00
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
2020-01-06 13:53:30 +01:00
|
|
|
end_of_kernel_bss = .;
|
2020-01-16 09:46:09 +01:00
|
|
|
}
|
2020-01-17 19:59:20 +01:00
|
|
|
|
|
|
|
end_of_kernel_image = .;
|
2018-10-16 11:01:38 +02:00
|
|
|
}
|