link.txt (view raw)
INPUT(build/boot.o)
OUTPUT_FORMAT(binary)
OUTPUT_ARCH(i386)
PAGE_SIZE = 1 << 12;
MEMORY
{
BOOT : ORIGIN = 0x00007C00, LENGTH = 0x00000200
SECOND_STAGE : ORIGIN = 0x00010000, LENGTH = 0x00090000
}
SECTIONS
{
BOOT : AT(0x0000)
{
build/boot.o(.text)
} >BOOT
SECOND_STAGE : AT(LOADADDR(BOOT) + SIZEOF(BOOT))
{
build/second_stage.o(.text)
build/second_stage.o(.data)
} >SECOND_STAGE
}