Lines Matching refs:ELFRelocation

97 class ELFRelocation {  class
103 ELFRelocation(unsigned type);
105 ~ELFRelocation();
109 static unsigned RelocType32(const ELFRelocation &rel);
111 static unsigned RelocType64(const ELFRelocation &rel);
113 static unsigned RelocSymbol32(const ELFRelocation &rel);
115 static unsigned RelocSymbol64(const ELFRelocation &rel);
117 static elf_addr RelocOffset32(const ELFRelocation &rel);
119 static elf_addr RelocOffset64(const ELFRelocation &rel);
121 static elf_sxword RelocAddend32(const ELFRelocation &rel);
123 static elf_sxword RelocAddend64(const ELFRelocation &rel);
134 ELFRelocation::ELFRelocation(unsigned type) { in ELFRelocation() function in ELFRelocation
145 ELFRelocation::~ELFRelocation() { in ~ELFRelocation()
152 bool ELFRelocation::Parse(const lldb_private::DataExtractor &data, in Parse()
160 unsigned ELFRelocation::RelocType32(const ELFRelocation &rel) { in RelocType32()
167 unsigned ELFRelocation::RelocType64(const ELFRelocation &rel) { in RelocType64()
174 unsigned ELFRelocation::RelocSymbol32(const ELFRelocation &rel) { in RelocSymbol32()
181 unsigned ELFRelocation::RelocSymbol64(const ELFRelocation &rel) { in RelocSymbol64()
188 elf_addr ELFRelocation::RelocOffset32(const ELFRelocation &rel) { in RelocOffset32()
195 elf_addr ELFRelocation::RelocOffset64(const ELFRelocation &rel) { in RelocOffset64()
202 elf_sxword ELFRelocation::RelocAddend32(const ELFRelocation &rel) { in RelocAddend32()
209 elf_sxword ELFRelocation::RelocAddend64(const ELFRelocation &rel) { in RelocAddend64()
2467 ELFRelocation rel(rel_type); in ParsePLTRelocations()
2476 typedef unsigned (*reloc_info_fn)(const ELFRelocation &rel); in ParsePLTRelocations()
2481 reloc_type = ELFRelocation::RelocType32; in ParsePLTRelocations()
2482 reloc_symbol = ELFRelocation::RelocSymbol32; in ParsePLTRelocations()
2484 reloc_type = ELFRelocation::RelocType64; in ParsePLTRelocations()
2485 reloc_symbol = ELFRelocation::RelocSymbol64; in ParsePLTRelocations()
2596 static void ApplyELF64ABS64Relocation(Symtab *symtab, ELFRelocation &rel, in ApplyELF64ABS64Relocation()
2599 Symbol *symbol = symtab->FindSymbolByID(ELFRelocation::RelocSymbol64(rel)); in ApplyELF64ABS64Relocation()
2608 ELFRelocation::RelocOffset64(rel)); in ApplyELF64ABS64Relocation()
2609 uint64_t val_offset = value + ELFRelocation::RelocAddend64(rel); in ApplyELF64ABS64Relocation()
2614 static void ApplyELF64ABS32Relocation(Symtab *symtab, ELFRelocation &rel, in ApplyELF64ABS32Relocation()
2617 Symbol *symbol = symtab->FindSymbolByID(ELFRelocation::RelocSymbol64(rel)); in ApplyELF64ABS32Relocation()
2620 value += ELFRelocation::RelocAddend32(rel); in ApplyELF64ABS32Relocation()
2635 ELFRelocation::RelocOffset32(rel)); in ApplyELF64ABS32Relocation()
2645 ELFRelocation rel(rel_hdr->sh_type); in ApplyRelocations()
2648 typedef unsigned (*reloc_info_fn)(const ELFRelocation &rel); in ApplyRelocations()
2653 reloc_type = ELFRelocation::RelocType32; in ApplyRelocations()
2654 reloc_symbol = ELFRelocation::RelocSymbol32; in ApplyRelocations()
2656 reloc_type = ELFRelocation::RelocType64; in ApplyRelocations()
2657 reloc_symbol = ELFRelocation::RelocSymbol64; in ApplyRelocations()
2674 rel_section->GetFileOffset() + ELFRelocation::RelocOffset32(rel); in ApplyRelocations()
2684 value += ELFRelocation::RelocAddend32(rel); in ApplyRelocations()