Commit b8d0fa7
authored
Rollup merge of rust-lang#92029 - nikic:section-flags-fix, r=davidtwco
Use debug section for .rustc
For a data section, the object crate will set SHF_ALLOC by default, which is exactly what we don't want. Use a debug section instead, the same as we do for .rmeta.
I checked with `objdump -h` that this produces the right flags for ELF.
Fixes rust-lang#92013.1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments