f6ba6aa117
and the Makefile will take care of the rest.
34 lines
659 B
Plaintext
34 lines
659 B
Plaintext
/* Link.ld -- Linker script for the kernel - ensure everything goes in the */
|
|
/* Correct place. */
|
|
/* Original file taken from Bran's Kernel Development */
|
|
/* tutorials: http://www.osdever.net/bkerndev/index.php. */
|
|
|
|
ENTRY(start)
|
|
SECTIONS
|
|
{
|
|
|
|
.text 0x100000 :
|
|
{
|
|
code = .; _code = .; __code = .;
|
|
*(.text)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
.data :
|
|
{
|
|
data = .; _data = .; __data = .;
|
|
*(.data)
|
|
*(.rodata)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
.bss :
|
|
{
|
|
bss = .; _bss = .; __bss = .;
|
|
*(.bss)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
end = .; _end = .; __end = .;
|
|
}
|