1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00
os-k/build/kernel.ld

45 lines
567 B
Plaintext
Raw Normal View History

2019-01-01 13:09:57 +01:00
ENTRY(StartKern)
2018-12-24 18:13:58 +01:00
SECTIONS
{
2019-01-14 14:31:49 +01:00
. = 1M;
2018-12-24 18:13:58 +01:00
2019-01-14 14:31:49 +01:00
.text : AT(ADDR(.text) - 1M)
2018-12-24 18:13:58 +01:00
{
_code = .;
*(.text)
*(.rodata*)
. = ALIGN(4096);
}
2019-01-14 14:31:49 +01:00
.data : AT(ADDR(.data) - 1M)
2018-12-24 18:13:58 +01:00
{
_data = .;
*(.data)
. = ALIGN(4096);
}
2019-01-14 14:31:49 +01:00
.eh_frame : AT(ADDR(.eh_frame) - 1M)
2018-12-24 18:13:58 +01:00
{
_ehframe = .;
*(.eh_frame)
. = ALIGN(4096);
}
2019-01-14 14:31:49 +01:00
.bss : AT(ADDR(.bss) - 1M)
2018-12-24 18:13:58 +01:00
{
_bss = .;
*(.bss)
*(COMMON)
. = ALIGN(4096);
}
_end = .;
/DISCARD/ :
{
*(.comment)
}
}