pub struct Section<'a> { /* private fields */ }
Implementations§
§impl Section<'_>
impl Section<'_>
pub fn segment_name(&self) -> String
pub fn segment_name(&self) -> String
Name of the segment that owns this section
pub fn relocation_offset(&self) -> u32
pub fn relocation_offset(&self) -> u32
Offset of the relocation table. This value should be 0
for executable and libraries as the relocations are managed by
crate::macho::Relocation::Dyld
or crate::macho::Relocation::Fixup
On the other hand, for object files (.o
) this value should not be 0 (c.f. crate::macho::Relocation::Object
)
pub fn numberof_relocations(&self) -> u32
pub fn numberof_relocations(&self) -> u32
Number of relocations associated with this section
pub fn raw_flags(&self) -> u32
pub fn section_type(&self) -> Type
pub fn section_type(&self) -> Type
Type of the section. This value can help to determine the purpose of the section
pub fn reserved1(&self) -> u32
pub fn reserved1(&self) -> u32
According to the official loader.h
file, this value is reserved
for offset or index
pub fn reserved2(&self) -> u32
pub fn reserved2(&self) -> u32
According to the official loader.h
file, this value is reserved
for count or sizeof
pub fn reserved3(&self) -> u32
pub fn reserved3(&self) -> u32
This value is only present for 64 bits Mach-O files. In that case, the value is reserved.
pub fn relocations(&self) -> Relocations<'_> ⓘ
pub fn relocations(&self) -> Relocations<'_> ⓘ
Iterator over the crate::macho::Relocation
associated with thi section