]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #92029 - nikic:section-flags-fix, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 19 Dec 2021 16:38:35 +0000 (17:38 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Dec 2021 16:38:35 +0000 (17:38 +0100)
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.


Trivial merge