b6c999753f
2. Linker script for kernel. 2. Updated mkiso script to link C with nasm and build a runable multiboot1 iso.
30 lines
245 B
Plaintext
30 lines
245 B
Plaintext
OUTPUT_FORMAT("binary")
|
|
INPUT
|
|
(
|
|
multiboot.o
|
|
entry.o
|
|
)
|
|
OUTPUT(kernel.bin)
|
|
SECTIONS
|
|
{
|
|
.text.start (0x1000000):
|
|
{
|
|
multiboot.o(.multiboot)
|
|
}
|
|
|
|
.text :
|
|
{
|
|
*(.text)
|
|
}
|
|
|
|
.data :
|
|
{
|
|
*(.data)
|
|
}
|
|
|
|
.bss :
|
|
{
|
|
*(.bss)
|
|
}
|
|
}
|