LLDB mainline
|
Represents a relocation entry with an implicit addend. More...
#include <ELFHeader.h>
Public Member Functions | |
ELFRel () | |
bool | Parse (const lldb_private::DataExtractor &data, lldb::offset_t *offset) |
Parse an ELFRel entry from the given DataExtractor starting at position offset . | |
Static Public Member Functions | |
static unsigned | RelocType32 (const ELFRel &rel) |
Returns the type when the given entry represents a 32-bit relocation. | |
static unsigned | RelocType64 (const ELFRel &rel) |
Returns the type when the given entry represents a 64-bit relocation. | |
static unsigned | RelocSymbol32 (const ELFRel &rel) |
Returns the symbol index when the given entry represents a 32-bit relocation. | |
static unsigned | RelocSymbol64 (const ELFRel &rel) |
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. | |
Represents a relocation entry with an implicit addend.
Definition at line 305 of file ELFHeader.h.
ELFRel::ELFRel | ( | ) |
Definition at line 414 of file ELFHeader.cpp.
bool ELFRel::Parse | ( | const lldb_private::DataExtractor & | data, |
lldb::offset_t * | offset | ||
) |
Parse an ELFRel 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 416 of file ELFHeader.cpp.
References lldb_private::DataExtractor::GetAddressByteSize(), GetMaxU64(), and r_offset.
|
inlinestatic |
Returns the symbol index when the given entry represents a 32-bit relocation.
Definition at line 337 of file ELFHeader.h.
References r_info.
|
inlinestatic |
Returns the symbol index when the given entry represents a 64-bit relocation.
Definition at line 341 of file ELFHeader.h.
References r_info.
|
inlinestatic |
Returns the type when the given entry represents a 32-bit relocation.
Definition at line 328 of file ELFHeader.h.
References r_info.
|
inlinestatic |
Returns the type when the given entry represents a 64-bit relocation.
Definition at line 331 of file ELFHeader.h.
References r_info.
elf_xword elf::ELFRel::r_info |
symbol index and type of relocation.
Definition at line 307 of file ELFHeader.h.
Referenced by RelocSymbol32(), RelocSymbol64(), RelocType32(), and RelocType64().
elf_addr elf::ELFRel::r_offset |