|
| Section (const uint8_t *data, ELF_CLASS type) |
|
| Section (const details::Elf64_Shdr &header) |
|
| Section (const details::Elf32_Shdr &header) |
|
| Section (const std::string &name, ELF_SECTION_TYPES type=ELF_SECTION_TYPES::SHT_PROGBITS) |
|
Section & | operator= (Section other) |
|
| Section (const Section &other) |
|
void | swap (Section &other) |
|
ELF_SECTION_TYPES | type () const |
|
span< const uint8_t > | content () const override |
| Section's content.
|
|
void | content (const std::vector< uint8_t > &data) override |
| Set section content.
|
|
void | content (std::vector< uint8_t > &&data) |
|
uint64_t | flags () const |
| Section flags LIEF::ELF::ELF_SECTION_FLAGS.
|
|
bool | has (ELF_SECTION_FLAGS flag) const |
| True if the section has the given flag
|
|
bool | has (const Segment &segment) const |
| True if the section is wrapped by the given Segment
|
|
std::set< ELF_SECTION_FLAGS > | flags_list () const |
| Return section flags as a std::set
|
|
uint64_t | size () const override |
| section's size (size in the binary, not the virtual size)
|
|
void | size (uint64_t size) override |
| Change the section size.
|
|
void | offset (uint64_t offset) override |
|
uint64_t | offset () const override |
| Offset in the binary.
|
|
uint64_t | file_offset () const |
|
uint64_t | original_size () const |
| Original size of the section's data.
|
|
uint64_t | alignment () const |
| Section file alignment.
|
|
uint64_t | information () const |
| Section information. This meaning of this value depends on the section's type.
|
|
uint64_t | entry_size () const |
| This function returns the size of an element in the case of a section that contains an array.
|
|
uint32_t | link () const |
| Index to another section.
|
|
Section & | clear (uint8_t value=0) |
| Clear the content of the section with the given value
|
|
void | add (ELF_SECTION_FLAGS flag) |
| Add the given ELF_SECTION_FLAGS.
|
|
void | remove (ELF_SECTION_FLAGS flag) |
| Remove the given ELF_SECTION_FLAGS.
|
|
void | type (ELF_SECTION_TYPES type) |
|
void | flags (uint64_t flags) |
|
void | clear_flags () |
|
void | file_offset (uint64_t offset) |
|
void | link (uint32_t link) |
|
void | information (uint32_t info) |
|
void | alignment (uint64_t alignment) |
|
void | entry_size (uint64_t entry_size) |
|
it_segments | segments () |
|
it_const_segments | segments () const |
|
Section & | as_frame () |
|
bool | is_frame () const |
|
void | accept (Visitor &visitor) const override |
|
Section & | operator+= (ELF_SECTION_FLAGS c) |
|
Section & | operator-= (ELF_SECTION_FLAGS c) |
|
| Section (std::string name) |
|
Section & | operator= (const Section &) |
|
| Section (const Section &) |
|
virtual std::string | name () const |
| section's name
|
|
virtual const std::string & | fullname () const |
| Return the complete section's name which might trailing (0 ) bytes.
|
|
virtual uint64_t | virtual_address () const |
| Address where the section should be mapped.
|
|
virtual void | virtual_address (uint64_t virtual_address) |
|
virtual void | name (const std::string &name) |
| Change the section's name.
|
|
double | entropy () const |
| Section's entropy.
|
|
size_t | search (uint64_t integer, size_t pos, size_t size) const |
|
size_t | search (const std::vector< uint8_t > &pattern, size_t pos=0) const |
|
size_t | search (const std::string &pattern, size_t pos=0) const |
|
size_t | search (uint64_t integer, size_t pos=0) const |
|
std::vector< size_t > | search_all (uint64_t v, size_t size) const |
|
std::vector< size_t > | search_all (uint64_t v) const |
|
std::vector< size_t > | search_all (const std::string &v) const |
|
void | accept (Visitor &visitor) const override |
| Method so that the visitor can visit us.
|
|
| 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 wich represents an ELF Section.