mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
34 lines
659 B
Text
34 lines
659 B
Text
|
/* 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 = .;
|
||
|
}
|