summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-31 14:31:48 +0200
committerMiguel <m.i@gmx.at>2018-08-31 14:31:48 +0200
commitd52c3d119dbbbf2a9573e7698a878cf74afdd08c (patch)
tree50b726883d79d97bf22beb446cdafb86d2d94d82 /linker.ld
parent1866d374e6f72edeb443556cb66e0b2ce3664eb9 (diff)
doxy and alignment
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld8
1 files changed, 5 insertions, 3 deletions
diff --git a/linker.ld b/linker.ld
index 1352163..c5fa5f8 100644
--- a/linker.ld
+++ b/linker.ld
@@ -3,14 +3,16 @@ ENTRY(_start)
SECTIONS
{
. = 0x7000;
+ kernel_start = .;
+
+ /* smp code at 0x7000*/
.text BLOCK(4K) : ALIGN(4K)
{
*(.smp)
}
. = 1M;
- kernel_start = .;
-
+ /* _start code as 0x10000 and rest of code*/
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
@@ -32,9 +34,9 @@ SECTIONS
/* Read-write data (uninitialized) and stack */
.bss BLOCK(4K) : ALIGN(4K)
{
+ *(.bootstrap_stack)
*(COMMON)
*(.bss)
- *(.bootstrap_stack)
}
kernel_end = .;