46 lines
704 B
Plaintext
46 lines
704 B
Plaintext
|
ENTRY(start)
|
||
|
OUTPUT_FORMAT("elf32-i386")
|
||
|
OUTPUT(kernel.bin)
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
. = 0x100000;
|
||
|
|
||
|
.__mbHeader :
|
||
|
{
|
||
|
*(.__mbHeader)
|
||
|
}
|
||
|
|
||
|
.setup :
|
||
|
{
|
||
|
*(.setup)
|
||
|
}
|
||
|
|
||
|
/* . += 0xC0000000; */
|
||
|
|
||
|
|
||
|
|
||
|
.text : /* AT(ADDR(.text) - 0xC0000000) */
|
||
|
{
|
||
|
_code = .;
|
||
|
*(.text)
|
||
|
*(.rodata*)
|
||
|
}
|
||
|
|
||
|
.data ALIGN(0x1000) : /* AT(ADDR(.data) - 0xC0000000) */
|
||
|
{
|
||
|
_data = .;
|
||
|
*(.data)
|
||
|
}
|
||
|
|
||
|
.bss ALIGN(0x1000) : /* AT(ADDR(.bss) - 0xC0000000) */
|
||
|
{
|
||
|
_bss = .;
|
||
|
*(COMMON)
|
||
|
*(.bss)
|
||
|
}
|
||
|
|
||
|
. = ALIGN(0x1000);
|
||
|
_end = .;
|
||
|
}
|