rust-lang / rust-lang/rustc_codegen_cranelift
Support compiling blog os
Open
Nobody has claimed this yet.
C-enhancement
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 157
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 3
Description
https://github.com/phil-opp/blog_os/
- Support -Zbuild-std (https://github.com/bjorn3/rustc_codegen_cranelift/issues/1207, fixed by https://github.com/bjorn3/rustc_codegen_cranelift/pull/1225)
- Use elf as object file format for targets using x86_64-unknown-none as llvm target (https://github.com/bytecodealliance/target-lexicon/pull/108, 7292fa2a90da9e8b1a434677774f26ced868d0d8)
-
Support rust-lld as linker in toolchain.rs(no longer using the partial linking hack) - Fix linker errors
- Add NOTYPE symbols to archive symbol table (8714be0ad3cb416e146c4bc5f674d49a7d13af68)
- Don't use
putson bare-metal targets (https://github.com/bjorn3/rustc_codegen_cranelift/pull/1220) - Don't emit
.eh_framesection on bare-metal targets -
"x86-interrupt"ABI - Enable
-Zfunction-sectionsby default
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 reviewing the blog_os project and the remaining unchecked items in this issue, especially omission of .eh_frame, the x86-interrupt ABI, and default -Zfunction-sections support. Trace the rustc_codegen_cranelift build path and relevant compiler tests before choosing one item; done means blog_os compiles with the selected requirement and the corresponding test coverage passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100