2020-12-02 03:01:11 +00:00
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 1M;
|
|
|
|
|
2022-10-29 15:03:56 +00:00
|
|
|
_kernel_start = .;
|
|
|
|
.multiboot.data : {
|
|
|
|
*(.multiboot.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
.multiboot.text : {
|
|
|
|
*(.multiboot.text)
|
|
|
|
}
|
|
|
|
|
|
|
|
. += 0xC0000000;
|
|
|
|
|
|
|
|
.text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000) {
|
|
|
|
*(.text)
|
2020-12-02 03:01:11 +00:00
|
|
|
}
|
|
|
|
|
2022-10-29 15:03:56 +00:00
|
|
|
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000) {
|
2020-12-02 03:01:11 +00:00
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
|
2022-10-29 15:03:56 +00:00
|
|
|
.data ALIGN (4K) : AT (ADDR(.data) - 0xC0000000) {
|
|
|
|
*(.data)
|
2020-12-02 03:01:11 +00:00
|
|
|
}
|
|
|
|
|
2022-10-29 15:03:56 +00:00
|
|
|
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000) {
|
|
|
|
*(COMMON)
|
2020-12-02 03:01:11 +00:00
|
|
|
*(.bss)
|
2022-10-29 15:03:56 +00:00
|
|
|
*(.bootstrap_stack)
|
2020-12-02 03:01:11 +00:00
|
|
|
}
|
2022-10-29 15:03:56 +00:00
|
|
|
_kernel_end = .;
|
2020-12-02 03:01:11 +00:00
|
|
|
}
|