mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +00:00

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.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.