diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-21 22:01:56 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-21 22:01:56 +0100 |
commit | f8221e81b9752548d26675111cffca1947c46b68 (patch) | |
tree | 79c77984c0b9ff42c8f87819cf51b64da4f8f98a /src/arch/x86/mbr/mbr.ld | |
parent | 888faa5f4f2b89c75f2dc2610fb5253120a028ce (diff) | |
download | notes-f8221e81b9752548d26675111cffca1947c46b68.tar.gz notes-f8221e81b9752548d26675111cffca1947c46b68.zip |
Diffstat (limited to 'src/arch/x86/mbr/mbr.ld')
-rw-r--r-- | src/arch/x86/mbr/mbr.ld | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/x86/mbr/mbr.ld b/src/arch/x86/mbr/mbr.ld new file mode 100644 index 0000000..46d8a14 --- /dev/null +++ b/src/arch/x86/mbr/mbr.ld @@ -0,0 +1,11 @@ +OUTPUT_FORMAT(elf32-i386) +OUTPUT_ARCH(i386) + +SECTIONS { + . = 0x7c00; + .boot : { *(.boot) } + _boot_end = .; + /DISCARD/ : { *(.*) } + + ASSERT(_boot_end - 0x7c00 == 512, "boot sector must be exact 512 bytes") +} |