2021-07-18 14:47:32 +02:00
|
|
|
ENTRY(start)
|
|
|
|
|
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
boot_text PT_LOAD ;
|
|
|
|
text PT_LOAD ;
|
|
|
|
data PT_LOAD ;
|
|
|
|
bss PT_LOAD ;
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x00100000;
|
|
|
|
|
|
|
|
start_of_prekernel_image = .;
|
|
|
|
|
|
|
|
.boot_text ALIGN(4K) : AT (ADDR(.boot_text))
|
|
|
|
{
|
|
|
|
KEEP(*(.multiboot))
|
|
|
|
} :boot_text
|
|
|
|
|
|
|
|
.text ALIGN(4K) : AT (ADDR(.text))
|
|
|
|
{
|
2021-07-19 09:34:47 +02:00
|
|
|
start_of_prekernel_text = .;
|
2021-07-18 14:47:32 +02:00
|
|
|
*(.text*)
|
|
|
|
} :text
|
|
|
|
|
|
|
|
.rodata ALIGN(4K) : AT (ADDR(.rodata))
|
|
|
|
{
|
|
|
|
*(.rodata*)
|
|
|
|
} :data
|
|
|
|
|
|
|
|
.data ALIGN(4K) : AT (ADDR(.data))
|
|
|
|
{
|
|
|
|
*(.data*)
|
|
|
|
} :data
|
|
|
|
|
|
|
|
.bss ALIGN(4K) (NOLOAD) : AT (ADDR(.bss))
|
|
|
|
{
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
2021-07-19 09:34:47 +02:00
|
|
|
*(.stack)
|
|
|
|
*(.page_tables)
|
2021-07-18 14:47:32 +02:00
|
|
|
} :bss
|
|
|
|
|
|
|
|
end_of_prekernel_image = .;
|
|
|
|
}
|