We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dea49a commit bcc5bbcCopy full SHA for bcc5bbc
2 files changed
linker.ld
@@ -2,13 +2,16 @@ ENTRY(_start)
2
3
SECTIONS
4
{
5
+ /* The kernel starts at 1MB */
6
. = 1M;
- kernel_start = .;
7
8
- .text BLOCK(4K) : ALIGN(4K)
+ .multiboot BLOCK(4K) : ALIGN(4K)
9
10
- /* MUST be at the very top of the binary */
11
KEEP(*(.multiboot))
+ }
12
+
13
+ .text BLOCK(4K) : ALIGN(4K)
14
+ {
15
*(.text)
16
}
17
src/boot.asm
@@ -1,3 +1,5 @@
1
+[bits 32]
section .multiboot
align 4
dd 0x1BADB002 ; Magic number
0 commit comments