pub enum Arch {
X86_64,
X86,
Aarch64,
Riscv64,
Riscv32,
Arm,
Loongarch64,
}Expand description
Supported CPU architectures for ELF generation.
Variants§
Implementations§
Source§impl Arch
impl Arch
Sourcepub fn is_rela(&self) -> bool
pub fn is_rela(&self) -> bool
Returns true if the architecture uses RELA (with addend) relocations.
Sourcepub fn jump_slot_reloc(&self) -> u32
pub fn jump_slot_reloc(&self) -> u32
Returns the architecture-specific JUMP_SLOT relocation type.
Sourcepub fn glob_dat_reloc(&self) -> u32
pub fn glob_dat_reloc(&self) -> u32
Returns the architecture-specific GLOB_DAT relocation type.
Sourcepub fn relative_reloc(&self) -> u32
pub fn relative_reloc(&self) -> u32
Returns the architecture-specific RELATIVE relocation type.
pub fn irelative_reloc(&self) -> u32
pub fn abs_reloc(&self) -> u32
pub fn copy_reloc(&self) -> u32
pub fn dtpmod_reloc(&self) -> u32
pub fn dtpoff_reloc(&self) -> u32
Trait Implementations§
Source§impl From<Arch> for Architecture
impl From<Arch> for Architecture
impl Copy for Arch
impl StructuralPartialEq for Arch
Auto Trait Implementations§
impl Freeze for Arch
impl RefUnwindSafe for Arch
impl Send for Arch
impl Sync for Arch
impl Unpin for Arch
impl UnwindSafe for Arch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more