rust-osdev / rust-osdev/bootloader

[Question] How do you make the MBR not have ELF headers?

Open
#272 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.7k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

Hi,
First I just want to say this is a great project and thanks for putting this out here.
I have a question regarding the BIOS bootloader. If I am undestanding properly, the BIOS bootloader is a unique ELF mixing Rust and assembly code, split into 4 stages. I wonder how you do to make Rust (or the LLVM backend inside it) not to generate ELF headers at the beginning of the file, so MBR code is first. I appreciate the help in advance.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the BIOS bootloader implementation and its four stages, then trace how Rust and LLVM output is transformed into the MBR image. Document the existing build or linking process that places MBR code before any ELF headers, if the repository provides enough detail to establish it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.