diff options
| author | Fawaz <fawaz@tirmizi.dev> | 2023-01-09 00:17:58 -0800 |
|---|---|---|
| committer | Fawaz <fawaz@tirmizi.dev> | 2023-01-12 22:35:38 -0800 |
| commit | 138a1d26b53cab16066b0faa3846722358a2c09f (patch) | |
| tree | 41d01fc33a746888185a731481d75095da261a8c /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | a377893da2cd7124e5a18c7116cbb70e16dd5541 (diff) | |
| download | rust-138a1d26b53cab16066b0faa3846722358a2c09f.tar.gz rust-138a1d26b53cab16066b0faa3846722358a2c09f.zip | |
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
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
