We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1b5be commit 37ff520Copy full SHA for 37ff520
real_mode/linker.ld
@@ -6,14 +6,25 @@ SECTIONS {
6
. = 0x7c00;
7
_stack_end = .;
8
9
- .bootloader :
+ _bootloader_start = .;
10
+ .boot :
11
+ {
12
+ *(.boot)
13
+ }
14
+ .text :
15
{
- *(.boot-first-stage)
16
*(.text .text.*)
17
18
+ .data :
19
20
*(.rodata .rodata.*)
21
*(.data .data.*)
22
*(.got)
- . = 0x7c00 + 510;
23
24
+
25
+ . = 0x7c00 + 510;
26
+ .magic_number :
27
28
SHORT(0xaa55) /* magic number for bootable disk */
29
}
30
_bootloader_end = .;
real_mode/src/boot.s
@@ -1,4 +1,4 @@
1
-.section .boot-first-stage, "awx"
+.section .boot, "awx"
2
.global _start
3
.intel_syntax noprefix
4
.code16
0 commit comments