2019-07-03 21:04:05 +02:00
|
|
|
ENTRY(kernel_loader)
|
2019-09-23 17:27:21 +02:00
|
|
|
SECTIONS
|
|
|
|
{
|
2019-07-03 18:12:57 +02:00
|
|
|
|
2019-09-23 17:27:21 +02:00
|
|
|
.text 0x100000 :
|
2019-07-03 18:12:57 +02:00
|
|
|
{
|
2019-09-23 17:27:21 +02:00
|
|
|
code = .; _code = .; __code = .;
|
2019-07-03 18:12:57 +02:00
|
|
|
*(.text)
|
2019-09-23 17:27:21 +02:00
|
|
|
. = ALIGN(4096);
|
2019-07-03 18:12:57 +02:00
|
|
|
}
|
|
|
|
|
2019-09-23 17:27:21 +02:00
|
|
|
.data :
|
2019-07-03 18:12:57 +02:00
|
|
|
{
|
2019-09-23 17:27:21 +02:00
|
|
|
data = .; _data = .; __data = .;
|
2019-07-03 18:12:57 +02:00
|
|
|
*(.data)
|
2019-09-23 17:27:21 +02:00
|
|
|
*(.rodata)
|
|
|
|
. = ALIGN(4096);
|
2019-07-03 18:12:57 +02:00
|
|
|
}
|
|
|
|
|
2019-09-23 17:27:21 +02:00
|
|
|
.bss :
|
2019-07-03 18:12:57 +02:00
|
|
|
{
|
2019-09-23 17:27:21 +02:00
|
|
|
bss = .; _bss = .; __bss = .;
|
2019-07-03 18:12:57 +02:00
|
|
|
*(.bss)
|
2019-09-23 17:27:21 +02:00
|
|
|
. = ALIGN(4096);
|
2019-07-03 18:12:57 +02:00
|
|
|
}
|
|
|
|
|
2019-09-23 17:27:21 +02:00
|
|
|
end = .; _end = .; __end = .;
|
2019-07-03 18:12:57 +02:00
|
|
|
}
|