Skip to content

Commit

Permalink
elf: add more EF_RISCV constants (gimli-rs#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxime authored Feb 5, 2023
1 parent acc7eee commit dc846a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/examples/src/readobj/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ static FLAGS_EF_SH_MACH: &[Flag<u32>] = &flags!(
EF_SH2A_SH3E,
);
static FLAGS_EF_S390: &[Flag<u32>] = &flags!(EF_S390_HIGH_GPRS);
static FLAGS_EF_RISCV: &[Flag<u32>] = &flags!(EF_RISCV_RVC);
static FLAGS_EF_RISCV: &[Flag<u32>] = &flags!(EF_RISCV_RVC, EF_RISCV_RVE, EF_RISCV_TSO);
static FLAGS_EF_RISCV_FLOAT_ABI: &[Flag<u32>] = &flags!(
EF_RISCV_FLOAT_ABI_SOFT,
EF_RISCV_FLOAT_ABI_SINGLE,
Expand Down
4 changes: 4 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6121,6 +6121,10 @@ pub const EF_RISCV_FLOAT_ABI_SINGLE: u32 = 0x0002;
pub const EF_RISCV_FLOAT_ABI_DOUBLE: u32 = 0x0004;
#[allow(missing_docs)]
pub const EF_RISCV_FLOAT_ABI_QUAD: u32 = 0x0006;
#[allow(missing_docs)]
pub const EF_RISCV_RVE: u32 = 0x0008;
#[allow(missing_docs)]
pub const EF_RISCV_TSO: u32 = 0x0010;

// RISC-V values `Rel*::r_type`.
#[allow(missing_docs)]
Expand Down

0 comments on commit dc846a7

Please sign in to comment.