Skip to content

Commit

Permalink
elf: add more ELFOSABI constants (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening authored Jun 6, 2022
1 parent 6f39788 commit 3fe732e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/examples/src/readobj/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,13 +795,19 @@ static FLAGS_EI_OSABI: &[Flag<u8>] = &flags!(
ELFOSABI_HPUX,
ELFOSABI_NETBSD,
ELFOSABI_GNU,
ELFOSABI_HURD,
ELFOSABI_SOLARIS,
ELFOSABI_AIX,
ELFOSABI_IRIX,
ELFOSABI_FREEBSD,
ELFOSABI_TRU64,
ELFOSABI_MODESTO,
ELFOSABI_OPENBSD,
ELFOSABI_OPENVMS,
ELFOSABI_NSK,
ELFOSABI_AROS,
ELFOSABI_FENIXOS,
ELFOSABI_CLOUDABI,
ELFOSABI_ARM_AEABI,
ELFOSABI_ARM,
ELFOSABI_STANDALONE,
Expand Down
12 changes: 12 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ pub const ELFOSABI_GNU: u8 = 3;
///
/// Compatibility alias.
pub const ELFOSABI_LINUX: u8 = ELFOSABI_GNU;
/// GNU/Hurd.
pub const ELFOSABI_HURD: u8 = 4;
/// Sun Solaris.
pub const ELFOSABI_SOLARIS: u8 = 6;
/// IBM AIX.
Expand All @@ -176,6 +178,16 @@ pub const ELFOSABI_TRU64: u8 = 10;
pub const ELFOSABI_MODESTO: u8 = 11;
/// OpenBSD.
pub const ELFOSABI_OPENBSD: u8 = 12;
/// OpenVMS.
pub const ELFOSABI_OPENVMS: u8 = 13;
/// Hewlett-Packard Non-Stop Kernel.
pub const ELFOSABI_NSK: u8 = 14;
/// AROS
pub const ELFOSABI_AROS: u8 = 15;
/// FenixOS
pub const ELFOSABI_FENIXOS: u8 = 16;
/// Nuxi CloudABI
pub const ELFOSABI_CLOUDABI: u8 = 17;
/// ARM EABI.
pub const ELFOSABI_ARM_AEABI: u8 = 64;
/// ARM.
Expand Down

0 comments on commit 3fe732e

Please sign in to comment.