Using this linker script:
Code: Select all
OUTPUT_FORMAT(elf32-i386)
ENTRY(start)
SECTIONS
{
. = 1M;
kernel_start = .;
.multiboot : ALIGN(4K) { *(.multiboot) }
.text : ALIGN(4K) { *(.text) }
.data : ALIGN(4K) { *(.data) }
.bss : ALIGN(4K) { *(.bss) }
kernel_end = .;
}
Code: Select all
extern unsigned long kernel_start, kernel_end;
0x1badb002
kernel_end:
0x0
I tried to play with the values alittle bit, and when
Code: Select all
kernel_start = 0x0
0xf000ff53
I'm missing something here, maybe because i'm tired.. beats me.