about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-26 23:25:02 +0200
committerGitHub <noreply@github.com>2025-08-26 23:25:02 +0200
commitac7f423d52c8f0a5c692e9c44cb40075c9ac8f68 (patch)
treebe34c021d2fb944718e10fe262ba65115e1da00e /compiler/rustc_codegen_llvm/src/errors.rs
parentfbf247dd31fd2610fc9d565d937a5d3b03d7312e (diff)
parentcb8c905c47aea018d8bef7b68ab885ce99d984da (diff)
downloadrust-ac7f423d52c8f0a5c692e9c44cb40075c9ac8f68.tar.gz
rust-ac7f423d52c8f0a5c692e9c44cb40075c9ac8f68.zip
Rollup merge of #145840 - a4lg:riscv-elf-flags-for-internal-objs, r=WaffleLapkin
rustc_codegen_ssa: More comprehensive RISC-V ELF flags

This change implements more conformant, more comprehensive RISC-V ELF flags handling when generating certain object files directly from rustc.

*   Use `"zca"` instead of `"c"`
    The "Zca" extension (a subset of "C") is the minimal configuration for compressed instructions to set `EF_RISCV_RVC` flag.
*   Set TSO flag from `"ztso"`
    The "Ztso" extension denotes that the program depends on the RVTSO (Total Store Ordering) memory consistency model, which is stronger than the standard RVWMO (Weak Memory Ordering) consistency model and on ELF targets, we need to set `EF_RISCV_TSO` flag.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions