]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 13 Jan 2023 18:16:45 +0000 (19:16 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 18:16:45 +0000 (19:16 +0100)
riscv: Fix ELF header flags

The previous version added both `EF_RISCV_FLOAT_ABI_DOUBLE` and `EF_RISCV_RVC` if the "D" extension was enabled on riscv64 targets. riscv32 targets were not accounted for. This patch changes this so that:

- Only add `EF_RISCV_RVC` if the "C" extension is enabled
- Add `EF_RISCV_FLOAT_ABI_SINGLE` if the "F" extension is enabled and the "D" extension is not
- Add these ELF flags for riscv32 as well

Fixes #104284

r? rust-lang/risc-v


Trivial merge