summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
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 = .;