![]() |
Qt 6.x
The Qt SDK
|
#include <elfreader.h>
Collaboration diagram for ElfReader:Public Types | |
| enum | Result { Ok , NotElf , Corrupt } |
Public Member Functions | |
| ElfReader (const QString &binary) | |
| ElfData | readHeaders () |
| QByteArray | readSection (const QByteArray §ionName) |
| QString | errorString () const |
| QByteArray | readCoreName (bool *isCore) |
| QList< QByteArray > | dependencies () |
Friends | |
| class | ElfMapper |
Definition at line 128 of file elfreader.h.
| enum ElfReader::Result |
| Enumerator | |
|---|---|
| Ok | |
| NotElf | |
| Corrupt | |
Definition at line 132 of file elfreader.h.
|
explicit |
Definition at line 109 of file elfreader.cpp.
| QList< QByteArray > ElfReader::dependencies | ( | ) |
Definition at line 366 of file elfreader.cpp.
References DT_NEEDED, DT_NULL, Elf_ELFCLASS64, ElfData::elfclass, getWord(), mapper, QByteArrayLiteral, QStringLiteral, readHeaders(), ElfData::sectionHeaders, QList< T >::size(), and tag.
Referenced by readElfExecutable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 136 of file elfreader.h.
Referenced by readElfExecutable().
Here is the caller graph for this function:| QByteArray ElfReader::readCoreName | ( | bool * | isCore | ) |
Definition at line 306 of file elfreader.cpp.
References QList< T >::at(), cutout(), Elf_ET_CORE, Elf_PT_NOTE, Elf_SHT_NOTE, ElfData::elftype, header(), i, mapper, ElfData::programHeaders, ElfData::sectionHeaders, QList< T >::size(), ElfSectionHeader::type, and ElfProgramHeader::type.
Here is the call graph for this function:| ElfData ElfReader::readHeaders | ( | ) |
Definition at line 114 of file elfreader.cpp.
Referenced by dependencies(), and readElfExecutable().
Here is the caller graph for this function:| QByteArray ElfReader::readSection | ( | const QByteArray & | sectionName | ) |
Definition at line 282 of file elfreader.cpp.
References QList< T >::at(), i, ElfData::indexOf(), mapper, ElfSectionHeader::offset, ElfData::sectionHeaders, and ElfSectionHeader::size.
Here is the call graph for this function:
|
friend |
Definition at line 141 of file elfreader.h.