Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions src/elf/constants_relocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,26 +872,14 @@ pub const R_RISCV_SUB16: u32 = 38;
pub const R_RISCV_SUB32: u32 = 39;
/// 64-bit label subtraction: word64 = S - A
pub const R_RISCV_SUB64: u32 = 40;
/// GNU C++ vtable hierarchy
pub const R_RISCV_GNU_VTINHERIT: u32 = 41;
/// GNU C++ vtable member usage
pub const R_RISCV_GNU_VTENTRY: u32 = 42;
/// 32-bit PC-relative relocation to a GOT entry
pub const R_RISCV_GOT32_PCREL: u32 = 41;
/// Alignment statement
pub const R_RISCV_ALIGN: u32 = 43;
/// PC-relative branch offset (CB-Type)
pub const R_RISCV_RVC_BRANCH: u32 = 44;
/// PC-relative jump offset (CJ-Type)
pub const R_RISCV_RVC_JUMP: u32 = 45;
/// Absolute address (CI-Type)
pub const R_RISCV_RVC_LUI: u32 = 46;
/// GP-relative reference (I-Type)
pub const R_RISCV_GPREL_I: u32 = 47;
/// GP-relative reference (S-Type)
pub const R_RISCV_GPREL_S: u32 = 48;
/// TP-relative TLS LE load (I-Type)
pub const R_RISCV_TPREL_I: u32 = 49;
/// TP-relative TLS LE store (S-Type)
pub const R_RISCV_TPREL_S: u32 = 50;
/// Instruction pair can be relaxed
pub const R_RISCV_RELAX: u32 = 51;
/// Local label subtraction
Expand Down Expand Up @@ -1829,16 +1817,10 @@ pub fn r_to_str(typ: u32, machine: u16) -> &'static str {
R_RISCV_SUB16 => "R_RISCV_SUB16",
R_RISCV_SUB32 => "R_RISCV_SUB32",
R_RISCV_SUB64 => "R_RISCV_SUB64",
R_RISCV_GNU_VTINHERIT => "R_RISCV_GNU_VTINHERIT",
R_RISCV_GNU_VTENTRY => "R_RISCV_GNU_VTENTRY",
R_RISCV_GOT32_PCREL => "R_RISCV_GOT32_PCREL",
R_RISCV_ALIGN => "R_RISCV_ALIGN",
R_RISCV_RVC_BRANCH => "R_RISCV_RVC_BRANCH",
R_RISCV_RVC_JUMP => "R_RISCV_RVC_JUMP",
R_RISCV_RVC_LUI => "R_RISCV_RVC_LUI",
R_RISCV_GPREL_I => "R_RISCV_GPREL_I",
R_RISCV_GPREL_S => "R_RISCV_GPREL_S",
R_RISCV_TPREL_I => "R_RISCV_TPREL_I",
R_RISCV_TPREL_S => "R_RISCV_TPREL_S",
R_RISCV_RELAX => "R_RISCV_RELAX",
R_RISCV_SUB6 => "R_RISCV_SUB6",
R_RISCV_SET6 => "R_RISCV_SET6",
Expand Down