pub enum SectionAttr {
PureInstructions = 2_147_483_648,
NoToc = 1_073_741_824,
StripStaticSyms = 536_870_912,
LiveSupport = 134_217_728,
Debug = 33_554_432,
SomeInstructions = 1_024,
ExtReloc = 512,
LocReloc = 256,
}Variants§
PureInstructions = 2_147_483_648
This section contains only executable machine instructions. The standard tools set this flag for the sections __TEXT,__text, __TEXT,__symbol_stub, and __TEXT,__picsymbol_stub.
NoToc = 1_073_741_824
section contains coalesced symbols that are not to be in a ranlib table of contents
StripStaticSyms = 536_870_912
ok to strip static symbols in this section in files with the MH_DYLDLINK flag
LiveSupport = 134_217_728
blocks are live if they reference live blocks
Debug = 33_554_432
If a segment contains any sections marked with S_ATTR_DEBUG then all sections in that segment must have this attribute. No section other than a section marked with this attribute may reference the contents of this section. A section with this attribute may contain no symbols and must have a section type S_REGULAR. The static linker will not copy section contents from sections with this attribute into its output file. These sections generally contain DWARF debugging info.
SomeInstructions = 1_024
section contains some executable machine instructions.
ExtReloc = 512
section has external relocation entries.
LocReloc = 256
section has local relocation entries.
Implementations§
Trait Implementations§
Source§impl Clone for SectionAttr
impl Clone for SectionAttr
Source§fn clone(&self) -> SectionAttr
fn clone(&self) -> SectionAttr
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SectionAttr
impl Debug for SectionAttr
Source§impl FromPrimitive for SectionAttr
impl FromPrimitive for SectionAttr
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for SectionAttr
impl PartialEq for SectionAttr
Source§fn eq(&self, other: &SectionAttr) -> bool
fn eq(&self, other: &SectionAttr) -> bool
self and other values to be equal, and is used by ==.