40 lines
557 B
Text
40 lines
557 B
Text
ENTRY(start)
|
|
|
|
SECTIONS {
|
|
|
|
. = 0x00100000;
|
|
|
|
kernel_start = .;
|
|
|
|
.multiboot.data : {
|
|
*(.multiboot.data)
|
|
}
|
|
|
|
.multiboot.text : {
|
|
*(.multiboot.text)
|
|
}
|
|
|
|
. += 0xC0000000;
|
|
|
|
.text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000)
|
|
{
|
|
*(.text)
|
|
}
|
|
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000)
|
|
{
|
|
*(.rodata)
|
|
}
|
|
.data ALIGN (4K) : AT (ADDR (.data) - 0xC0000000)
|
|
{
|
|
*(.data)
|
|
}
|
|
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000)
|
|
{
|
|
*(COMMON)
|
|
*(.bss)
|
|
*(.bootstrap_stack)
|
|
}
|
|
|
|
kernel_end = .;
|
|
|
|
}
|