rust-osdev / rust-osdev/bootloader
First stage of the 0.9 bootloader has a size limit on the size of the rest of the bootloader
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
It seems that it can't handle a bootloader larger than 1MB. Likely due to an overflow at https://github.com/rust-osdev/bootloader/blob/794c5b842e02c37fd82c606c26edf6a8899edd1e/src/stage_1.s#L85 or one of the other stores below. I hit this limit when trying to compile the bootloader using cg_clif, which doesn't optimize well and thus produces large binaries.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/stage_1.s at line 85 and the other stores below it, then reproduce the failure with a bootloader larger than 1MB, such as one built with cg_clif. Trace where the size overflows, and verify that the first stage can load larger bootloaders without corruption or failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100