|
LLDB mainline
|
Represents a relocation entry with an explicit addend. More...
#include <ELFHeader.h>
Public Member Functions | |
| ELFRela () | |
| bool | Parse (const lldb_private::DataExtractor &data, lldb::offset_t *offset) |
Parse an ELFRela entry from the given DataExtractor starting at position offset. | |
Static Public Member Functions | |
| static unsigned | RelocType32 (const ELFRela &rela) |
| Returns the type when the given entry represents a 32-bit relocation. | |
| static unsigned | RelocType64 (const ELFRela &rela) |
| Returns the type when the given entry represents a 64-bit relocation. | |
| static unsigned | RelocSymbol32 (const ELFRela &rela) |
| Returns the symbol index when the given entry represents a 32-bit relocation. | |
| static unsigned | RelocSymbol64 (const ELFRela &rela) |
| Returns the symbol index when the given entry represents a 64-bit relocation. | |
Public Attributes | |
| elf_addr | r_offset |
| Address of reference. | |
| elf_xword | r_info |
| Symbol index and type of relocation. | |
| elf_sxword | r_addend |
| Constant part of expression. | |
Represents a relocation entry with an explicit addend.
Definition at line 346 of file ELFHeader.h.
| ELFRela::ELFRela | ( | ) |
Definition at line 426 of file ELFHeader.cpp.
References ELFRela().
Referenced by ELFRela(), RelocSymbol32(), RelocSymbol64(), RelocType32(), and RelocType64().
| bool ELFRela::Parse | ( | const lldb_private::DataExtractor & | data, |
| lldb::offset_t * | offset ) |
Parse an ELFRela entry from the given DataExtractor starting at position offset.
The address size of the DataExtractor determines if a 32 or 64 bit object is to be parsed.
| [in] | data | The DataExtractor to read from. The address size of the extractor determines if a 32 or 64 bit object should be read. |
| [in,out] | offset | Pointer to an offset in the data. On return the offset will be advanced by the number of bytes read. |
Definition at line 428 of file ELFHeader.cpp.
References lldb_private::DataExtractor::GetAddressByteSize(), GetMaxS64(), GetMaxU64(), r_addend, and r_offset.
|
inlinestatic |
Returns the symbol index when the given entry represents a 32-bit relocation.
Definition at line 381 of file ELFHeader.h.
|
inlinestatic |
Returns the symbol index when the given entry represents a 64-bit relocation.
Definition at line 387 of file ELFHeader.h.
|
inlinestatic |
Returns the type when the given entry represents a 32-bit relocation.
Definition at line 370 of file ELFHeader.h.
|
inlinestatic |
Returns the type when the given entry represents a 64-bit relocation.
Definition at line 375 of file ELFHeader.h.
| elf_sxword elf::ELFRela::r_addend |
| elf_xword elf::ELFRela::r_info |
Symbol index and type of relocation.
Definition at line 348 of file ELFHeader.h.
Referenced by RelocSymbol32(), RelocSymbol64(), RelocType32(), and RelocType64().
| elf_addr elf::ELFRela::r_offset |