| Crates.io | bootloader-x86_64-bios-boot-sector |
| lib.rs | bootloader-x86_64-bios-boot-sector |
| version | 0.11.12 |
| created_at | 2022-11-13 21:14:59.78916+00 |
| updated_at | 2025-09-03 15:32:40.818726+00 |
| description | BIOS boot sector for the `bootloader` crate |
| homepage | |
| repository | https://github.com/rust-osdev/bootloader |
| max_upload_size | |
| id | 714514 |
| size | 11,315 |
This executable needs to fit into the 512-byte boot sector, so we need to use all kinds of tricks to keep the size down.
cargo build --profile=stage-1 -Zbuild-std=core --target ../../i386-code16-boot-sector.json -Zbuild-std-features=compiler-builtins-memobjcopy -I elf32-i386 -O binary ../../target/i386-code16-boot-sector/stage-1/bootloader-x86_64-bios-boot-sector ../../target/disk_image.imgTo run in QEMU:
qemu-system-x86_64 -drive format=raw,file=../../target/disk_image.imgTo print the contents of the ELF file, e.g. for trying to bring the size down:
objdump -xsdS -M i8086,intel ../../target/i386-code16-boot-sector/stage-1/bootloader-x86_64-bios-boot-sector