SNOWK'S NODE — static gen — bangkok, thailand —

project feed — LunOS

Viewing all devlog updates tagged with LunOS.

< back to all projects


2026-04-02 — Bootloader stable, memory allocator next

The bootloader is finally solid. I spent most of March in bootloader hell after a refactor broke GRUB multiboot2 detection.

The bug: I was setting up the multiboot2 header in a section I called .multiboot and linking it at the very start of the binary, which worked — but after the refactor, the linker script wasn't putting that section first anymore.

Fixed by making the linker script explicit:

SECTIONS {
    . = 1M;

    .text BLOCK(4K) : ALIGN(4K) {
        KEEP(*(.multiboot))
        *(.text)
    }
}