Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for large sections to the Stage 0 linker script (#4920)
The latest version of LLVM uses new sections when compiling with -C code-model=large (.ltext, .ldata, .lrodata and .lbss). This causes problems when building the Stage 0 binaries: the sections aren't referenced in the linker script so they get placed in locations that violate some of the requirements of the firmware layout. See https://lld.llvm.org/ELF/large_sections.html and b/330173039 for more context. This version is used by Rust nightly from version 1.78 onwards, so would block us from updating the Rust compiler without support for these.
- Loading branch information