]> git.lizzy.rs Git - rust.git/commit
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)
commit278e02a5b614d8a50a6549bbeb5b10ed4a42b6f8
treef40babed7e7ee98d89d07b1eb4eb7dbc9c6beec6
parente0f6840bb663e68064cd4737e6dded2cc91f8fce
parent138a1d26b53cab16066b0faa3846722358a2c09f
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3

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