pub struct Section {
pub sectname: [u8; 16],
pub segname: [u8; 16],
pub addr: u64,
pub size: u64,
pub offset: u32,
pub align: u32,
pub reloff: u32,
pub nreloc: u32,
pub flags: u32,
}Expand description
Generalized 32/64 bit Section
Fields§
§sectname: [u8; 16]name of this section
segname: [u8; 16]segment this section goes in
addr: u64memory address of this section
size: u64size in bytes of this section
offset: u32file offset of this section
align: u32section alignment (power of 2)
reloff: u32file offset of relocation entries
nreloc: u32number of relocation entries
flags: u32flags (section type and attributes
Implementations§
Source§impl Section
impl Section
Sourcepub fn iter_relocations<'b>(
&self,
data: &'b [u8],
ctx: Ctx,
) -> RelocationIterator<'b> ⓘ
pub fn iter_relocations<'b>( &self, data: &'b [u8], ctx: Ctx, ) -> RelocationIterator<'b> ⓘ
Iterate this sections relocations given data; data must be the original binary