Class which represents a LOAD_COMMAND_TYPES::LC_SEGMENT / LOAD_COMMAND_TYPES::LC_SEGMENT_64 command.
More...
|
| SegmentCommand (const details::segment_command_32 &cmd) |
|
| SegmentCommand (const details::segment_command_64 &cmd) |
|
SegmentCommand & | operator= (SegmentCommand other) |
|
| SegmentCommand (const SegmentCommand ©) |
|
| SegmentCommand (std::string name, content_t content) |
|
| SegmentCommand (std::string name) |
|
void | swap (SegmentCommand &other) |
|
SegmentCommand * | clone () const override |
|
const std::string & | name () const |
| Name of the segment (e.g. __TEXT )
|
|
uint64_t | virtual_address () const |
| Absolute virtual base address of the segment.
|
|
uint64_t | virtual_size () const |
| Virtual size of the segment.
|
|
uint64_t | file_size () const |
| Size of this segment in the binary file.
|
|
uint64_t | file_offset () const |
| Offset of the data of this segment in the file.
|
|
uint32_t | max_protection () const |
| The maximum of protections for this segment (cf. VM_PROTECTIONS)
|
|
uint32_t | init_protection () const |
| The initial protections of this segment (cf. VM_PROTECTIONS)
|
|
uint32_t | numberof_sections () const |
| The number of sections associated with this segment.
|
|
uint32_t | flags () const |
| Flags associated with this segment (cf. MACHO_SEGMENTS_FLAGS)
|
|
it_sections | sections () |
| Return an iterator over the MachO::Section linked to this segment.
|
|
it_const_sections | sections () const |
|
it_relocations | relocations () |
| Return an iterator over the MachO::Relocation linked to this segment.
|
|
it_const_relocations | relocations () const |
|
const Section * | get_section (const std::string &name) const |
| Get the section with the given name.
|
|
Section * | get_section (const std::string &name) |
|
span< const uint8_t > | content () const |
| The raw content of this segment.
|
|
int8_t | index () const |
| The original index of this segment.
|
|
void | name (const std::string &name) |
|
void | virtual_address (uint64_t virtual_address) |
|
void | virtual_size (uint64_t virtual_size) |
|
void | file_offset (uint64_t file_offset) |
|
void | file_size (uint64_t file_size) |
|
void | max_protection (uint32_t max_protection) |
|
void | init_protection (uint32_t init_protection) |
|
void | numberof_sections (uint32_t nb_section) |
|
void | flags (uint32_t flags) |
|
void | content (content_t data) |
|
Section & | add_section (const Section §ion) |
| Add a new section in this segment.
|
|
void | remove_all_sections () |
| Remove all the sections linked to this segment.
|
|
bool | has (const Section §ion) const |
| Check if the current segment embeds the given section.
|
|
bool | has_section (const std::string §ion_name) const |
| Check if the current segment embeds the given section name.
|
|
std::ostream & | print (std::ostream &os) const override |
|
void | accept (Visitor &visitor) const override |
|
Public Member Functions inherited from LIEF::MachO::LoadCommand |
| LoadCommand (const details::load_command &command) |
|
| LoadCommand (LOAD_COMMAND_TYPES type, uint32_t size) |
|
LoadCommand & | operator= (LoadCommand copy) |
|
| LoadCommand (const LoadCommand ©) |
|
void | swap (LoadCommand &other) |
|
LOAD_COMMAND_TYPES | command () const |
| Command type.
|
|
uint32_t | size () const |
| Size of the command (should be greather than sizeof(load_command) )
|
|
span< const uint8_t > | data () const |
| Raw command.
|
|
uint64_t | command_offset () const |
| Offset of the command within the Load Command Table
|
|
void | data (const raw_t &data) |
|
void | command (LOAD_COMMAND_TYPES command) |
|
void | size (uint32_t size) |
|
void | command_offset (uint64_t offset) |
|
| Object (const Object &other) |
|
Object & | operator= (const Object &other) |
|
template<class T > |
output_t< T > | as () |
|
template<class T > |
output_const_t< T > | as () const |
|
virtual bool | operator== (const Object &other) const |
|
virtual bool | operator!= (const Object &other) const |
|
Class which represents a LOAD_COMMAND_TYPES::LC_SEGMENT / LOAD_COMMAND_TYPES::LC_SEGMENT_64 command.