diff --git a/crates/examples/src/readobj/elf.rs b/crates/examples/src/readobj/elf.rs index df16fe38..a8c0a56e 100644 --- a/crates/examples/src/readobj/elf.rs +++ b/crates/examples/src/readobj/elf.rs @@ -3091,6 +3091,14 @@ const FLAGS_R_RISCV: &[Flag] = &flags!( R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL, + R_RISCV_IRELATIVE, + R_RISCV_PLT32, + R_RISCV_SET_ULEB128, + R_RISCV_SUB_ULEB128, + R_RISCV_TLSDESC_HI20, + R_RISCV_TLSDESC_LOAD_LO12, + R_RISCV_TLSDESC_ADD_LO12, + R_RISCV_TLSDESC_CALL, ); const FLAGS_R_BPF: &[Flag] = &flags!(R_BPF_NONE, R_BPF_64_64, R_BPF_64_32); const FLAGS_R_SBF: &[Flag] = &flags!(R_SBF_NONE, R_SBF_64_64, R_SBF_64_32); diff --git a/src/elf.rs b/src/elf.rs index 7398340f..c9c53bf1 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -5866,6 +5866,14 @@ pub const R_RISCV_SET8: u32 = 54; pub const R_RISCV_SET16: u32 = 55; pub const R_RISCV_SET32: u32 = 56; pub const R_RISCV_32_PCREL: u32 = 57; +pub const R_RISCV_IRELATIVE: u32 = 58; +pub const R_RISCV_PLT32: u32 = 59; +pub const R_RISCV_SET_ULEB128: u32 = 60; +pub const R_RISCV_SUB_ULEB128: u32 = 61; +pub const R_RISCV_TLSDESC_HI20: u32 = 62; +pub const R_RISCV_TLSDESC_LOAD_LO12: u32 = 63; +pub const R_RISCV_TLSDESC_ADD_LO12: u32 = 64; +pub const R_RISCV_TLSDESC_CALL: u32 = 65; // BPF values `Rel*::r_type`. /// No reloc