pub struct ElfSection { /* private fields */ }
Expand description

A single generic ELF Section.

Implementations

Get the section type as a ElfSectionType enum variant.

Get the “raw” section type as a u32

Read the name of the section.

Get the physical start address of the section.

Get the physical end address of the section.

This is the same as doing section.start_address() + section.size()

Get the section’s size in bytes.

Get the section’s address alignment constraints.

That is, the value of start_address must be congruent to 0, modulo the value of addrlign. Currently, only 0 and positive integral powers of two are allowed. Values 0 and 1 mean the section has no alignment constraints.

Get the section’s flags.

Check if the ALLOCATED flag is set in the section flags.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.