rust/compiler/rustc_codegen_ssa
Matthias Krüger 9415c67ae5
Rollup merge of #92029 - nikic:section-flags-fix, r=davidtwco
Explicitly set no ELF flags for .rustc section

For a data section, the object crate will set the SHF_ALLOC by default, which is exactly what we don't want. Explicitly set sh_flags to zero to avoid this.

I checked with `objdump -h` that this produces the right flags for ELF.

Fixes #92013.
2021-12-19 17:38:35 +01:00
..
src Rollup merge of #92029 - nikic:section-flags-fix, r=davidtwco 2021-12-19 17:38:35 +01:00
Cargo.toml Use object crate for .rustc metadata generation 2021-12-07 09:39:05 +01:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.