Enum elflib::ProgramHeaderType
source · #[repr(u32)]pub enum ProgramHeaderType {
Show 45 variants
_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext = 1_879_048_192,
_RiscvAttributesOrMipsAbiflags = 1_879_048_195,
_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc = 1_879_048_193,
_Ia64HpOptAnotOrHpOptAnnot = 1_610_612_754,
_Ia64HpHslAnotOrHpHslAnnot = 1_610_612_755,
_Ia64HpStackOrHpStack = 1_610_612_756,
_PariscWeakorderOrMipsOptionsOrAArch64MemtagMte = 1_879_048_194,
_HpTlsOrLoos = 1_610_612_736,
HpCoreNone = 1_610_612_737,
HpCoreVersion = 1_610_612_738,
HpCoreKernel = 1_610_612_739,
HpCoreComm = 1_610_612_740,
HpCoreProc = 1_610_612_741,
HpCoreLoadable = 1_610_612_742,
HpCoreStack = 1_610_612_743,
HpCoreShm = 1_610_612_744,
HpCoreMmf = 1_610_612_745,
HpParallel = 1_610_612_752,
HpFastbind = 1_610_612_753,
HpCoreUtsname = 1_610_612_757,
Null = 0,
Load = 1,
Dynamic = 2,
Interp = 3,
Note = 4,
Shlib = 5,
Phdr = 6,
Tls = 7,
_HiosOrHisunw = 1_879_048_191,
Hiproc = 2_147_483_647,
_GnuEhFrameOrSunwEhFrame = 1_685_382_480,
GnuStack = 1_685_382_481,
GnuRelro = 1_685_382_482,
GnuProperty = 1_685_382_483,
GnuSframe = 1_685_382_484,
OpenbsdMutable = 1_705_237_477,
OpenbsdRandomize = 1_705_237_478,
OpenbsdWxneeded = 1_705_237_479,
OpenbsdNobtcfi = 1_705_237_480,
OpenbsdBootdata = 1_705_253_862,
GnuMbindNum = 4_096,
GnuMbindLo = 1_685_382_485,
GnuMbindHi = 1_685_386_580,
_LosunwOrSunwbss = 1_879_048_186,
Sunwstack = 1_879_048_187,
}
Variants§
_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext = 1_879_048_192
SpuInfo Or PariscArchext Or MipsReginfo Or C6000Phattr Or Processor-specific Or S390Pgste Or Arch extension bits, Or AArch64Archext
_RiscvAttributesOrMipsAbiflags = 1_879_048_195
_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc = 1_879_048_193
IA64 unwind bits Or ArmExidx Or PariscUnwind Or MipsRtproc
_Ia64HpOptAnotOrHpOptAnnot = 1_610_612_754
_Ia64HpHslAnotOrHpHslAnnot = 1_610_612_755
_Ia64HpStackOrHpStack = 1_610_612_756
_PariscWeakorderOrMipsOptionsOrAArch64MemtagMte = 1_879_048_194
_HpTlsOrLoos = 1_610_612_736
HpTls Or OS-specific
HpCoreNone = 1_610_612_737
HpCoreVersion = 1_610_612_738
HpCoreKernel = 1_610_612_739
HpCoreComm = 1_610_612_740
HpCoreProc = 1_610_612_741
HpCoreLoadable = 1_610_612_742
HpCoreStack = 1_610_612_743
HpCoreShm = 1_610_612_744
HpCoreMmf = 1_610_612_745
HpParallel = 1_610_612_752
HpFastbind = 1_610_612_753
HpCoreUtsname = 1_610_612_757
Null = 0
Program header table entry unused
Load = 1
Loadable program segment
Dynamic = 2
Dynamic linking information
Interp = 3
Program interpreter
Note = 4
Auxiliary information
Shlib = 5
Reserved, unspecified semantics
Phdr = 6
Entry for header table itself
Tls = 7
Thread local storage segment
_HiosOrHisunw = 1_879_048_191
OS-specific Or Hisunw
Hiproc = 2_147_483_647
Processor-specific
_GnuEhFrameOrSunwEhFrame = 1_685_382_480
Frame unwind information Or Solaris uses the same value
GnuStack = 1_685_382_481
Stack flags
GnuRelro = 1_685_382_482
Read-only after relocation
GnuProperty = 1_685_382_483
GNU property
GnuSframe = 1_685_382_484
SFrame stack trace information
OpenbsdMutable = 1_705_237_477
Like bss, but not immutable.
OpenbsdRandomize = 1_705_237_478
Fill with random data.
OpenbsdWxneeded = 1_705_237_479
Program does W^X violations.
OpenbsdNobtcfi = 1_705_237_480
No branch target CFI.
OpenbsdBootdata = 1_705_253_862
Section for boot arguments.
GnuMbindNum = 4_096
GnuMbindLo = 1_685_382_485
GnuMbindHi = 1_685_386_580
_LosunwOrSunwbss = 1_879_048_186
Losunw Or Sun Specific segment
Sunwstack = 1_879_048_187
Stack segment
Implementations§
source§impl ProgramHeaderType
impl ProgramHeaderType
pub const SpuInfo: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const PariscArchext: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const MipsReginfo: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const C6000Phattr: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
sourcepub const Loproc: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const Loproc: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
Processor-specific
pub const S390Pgste: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
sourcepub const Ia64Archext: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const Ia64Archext: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
Arch extension bits,
pub const AArch64Archext: Self = Self::_SpuInfoOrPariscArchextOrMipsReginfoOrC6000PhattrOrLoprocOrS390PgsteOrIa64ArchextOrAArch64Archext
pub const RiscvAttributes: Self = Self::_RiscvAttributesOrMipsAbiflags
pub const MipsAbiflags: Self = Self::_RiscvAttributesOrMipsAbiflags
sourcepub const Ia64Unwind: Self = Self::_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc
pub const Ia64Unwind: Self = Self::_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc
IA64 unwind bits.
pub const ArmExidx: Self = Self::_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc
pub const PariscUnwind: Self = Self::_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc
pub const MipsRtproc: Self = Self::_Ia64UnwindOrArmExidxOrPariscUnwindOrMipsRtproc
pub const Ia64HpOptAnot: Self = Self::_Ia64HpOptAnotOrHpOptAnnot
pub const HpOptAnnot: Self = Self::_Ia64HpOptAnotOrHpOptAnnot
pub const Ia64HpHslAnot: Self = Self::_Ia64HpHslAnotOrHpHslAnnot
pub const HpHslAnnot: Self = Self::_Ia64HpHslAnotOrHpHslAnnot
pub const Ia64HpStack: Self = Self::_Ia64HpStackOrHpStack
pub const HpStack: Self = Self::_Ia64HpStackOrHpStack
pub const PariscWeakorder: Self = Self::_PariscWeakorderOrMipsOptionsOrAArch64MemtagMte
pub const MipsOptions: Self = Self::_PariscWeakorderOrMipsOptionsOrAArch64MemtagMte
pub const AArch64MemtagMte: Self = Self::_PariscWeakorderOrMipsOptionsOrAArch64MemtagMte
pub const HpTls: Self = Self::_HpTlsOrLoos
pub const Hisunw: Self = Self::_HiosOrHisunw
sourcepub const GnuEhFrame: Self = Self::_GnuEhFrameOrSunwEhFrame
pub const GnuEhFrame: Self = Self::_GnuEhFrameOrSunwEhFrame
Frame unwind information
sourcepub const SunwEhFrame: Self = Self::_GnuEhFrameOrSunwEhFrame
pub const SunwEhFrame: Self = Self::_GnuEhFrameOrSunwEhFrame
Solaris uses the same value
pub const Losunw: Self = Self::_LosunwOrSunwbss
Trait Implementations§
source§impl BinarySerde for ProgramHeaderType
impl BinarySerde for ProgramHeaderType
source§const SERIALIZED_SIZE: usize = 4usize
const SERIALIZED_SIZE: usize = 4usize
§type RecursiveArray = <u32 as BinarySerde>::RecursiveArray
type RecursiveArray = <u32 as BinarySerde>::RecursiveArray
Self::SERIALIZED_SIZE
.source§fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
fn binary_serialize(&self, buf: &mut [u8], endianness: Endianness)
source§fn binary_deserialize(
buf: &[u8],
endianness: Endianness
) -> Result<Self, DeserializeError>
fn binary_deserialize( buf: &[u8], endianness: Endianness ) -> Result<Self, DeserializeError>
source§fn binary_serialize_to_array(
&self,
endianness: Endianness
) -> Self::RecursiveArray
fn binary_serialize_to_array( &self, endianness: Endianness ) -> Self::RecursiveArray
source§impl Clone for ProgramHeaderType
impl Clone for ProgramHeaderType
source§fn clone(&self) -> ProgramHeaderType
fn clone(&self) -> ProgramHeaderType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProgramHeaderType
impl Debug for ProgramHeaderType
source§impl Hash for ProgramHeaderType
impl Hash for ProgramHeaderType
source§impl PartialEq for ProgramHeaderType
impl PartialEq for ProgramHeaderType
source§fn eq(&self, other: &ProgramHeaderType) -> bool
fn eq(&self, other: &ProgramHeaderType) -> bool
self
and other
values to be equal, and is used
by ==
.