aboutsummaryrefslogtreecommitdiff
path: root/defs/x86_64-linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'defs/x86_64-linker.ld')
-rw-r--r--defs/x86_64-linker.ld8
1 files changed, 7 insertions, 1 deletions
diff --git a/defs/x86_64-linker.ld b/defs/x86_64-linker.ld
index caecb48..39d8876 100644
--- a/defs/x86_64-linker.ld
+++ b/defs/x86_64-linker.ld
@@ -1,5 +1,10 @@
/* defs for Multiboot headers */
+/* https://www.gnu.org/software/grub/manual/multiboot/multiboot.txt */
MB_MAGIC = 0x1badb002;
+/* bit 0
+ * all boot modules loaded along with the operating system must be
+ * aligned on page (4KB) bit 1 must include mem_* structures
+ */
MB_FLAGS = 0x3;
MB_CHKSUM = 0x100000000 - (MB_MAGIC + MB_FLAGS);
@@ -9,7 +14,8 @@ SECTIONS
.boot :
{
- header_start = .; LONG(MB_MAGIC)
+ header_start = .;
+ LONG(MB_MAGIC)
LONG(MB_FLAGS)
LONG(MB_CHKSUM)
LONG(0)