50 lines
712 B
Plaintext
50 lines
712 B
Plaintext
ENTRY(StartKern)
|
|
SECTIONS
|
|
{
|
|
. = 1M;
|
|
|
|
.text : AT(ADDR(.text) - 1M)
|
|
{
|
|
_code = .;
|
|
*(.text)
|
|
*(.rodata*)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
.data : AT(ADDR(.data) - 1M)
|
|
{
|
|
_data = .;
|
|
*(.data)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
.eh_frame : AT(ADDR(.eh_frame) - 1M)
|
|
{
|
|
_ehframe = .;
|
|
*(.eh_frame)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
.bss : AT(ADDR(.bss) - 1M)
|
|
{
|
|
_bss = .;
|
|
*(.bss)
|
|
|
|
/*
|
|
* You usually need to include generated COMMON symbols
|
|
* under kernel BSS section or use gcc's -fno-common
|
|
*/
|
|
|
|
*(COMMON)
|
|
. = ALIGN(4096);
|
|
}
|
|
|
|
_end = .;
|
|
|
|
/DISCARD/ :
|
|
{
|
|
*(.comment)
|
|
}
|
|
}
|
|
|