Format linker script and remove misleading comments
This commit is contained in:
parent
34fe67fafb
commit
c62cc3b5e4
@ -3,9 +3,6 @@ ENTRY (_start)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x1000;
|
||||
/* The kernel will live at 12MB in the virtual address space, */
|
||||
/* which will be mapped to 0 in the physical address space. */
|
||||
/* Note that we page-align the sections. */
|
||||
.early.text ALIGN (4K) : {
|
||||
*(.early.text)
|
||||
}
|
||||
@ -19,28 +16,20 @@ SECTIONS
|
||||
*(.early.bss)
|
||||
}
|
||||
|
||||
|
||||
|
||||
. += 0xC00000;
|
||||
/* Add a symbol that indicates the start address of the kernel. */
|
||||
.text ALIGN (4K) : AT (ADDR (.text) - 0xC00000)
|
||||
{
|
||||
.text ALIGN (4K) : AT (ADDR (.text) - 0xC00000) {
|
||||
*(.text)
|
||||
}
|
||||
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000)
|
||||
{
|
||||
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000) {
|
||||
*(.rodata)
|
||||
}
|
||||
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000)
|
||||
{
|
||||
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000) {
|
||||
*(.data)
|
||||
}
|
||||
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000)
|
||||
{
|
||||
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000) {
|
||||
*(COMMON)
|
||||
*(.bss)
|
||||
}
|
||||
|
||||
.pagereserve ALIGN (4K) : {
|
||||
*(.pagereserve)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user