Home
last modified time | relevance | path

Searched refs:rel (Results 1 – 3 of 3) sorted by relevance

/bionic/linker/
Dlinker_mips.cpp59 const auto rel = rel_iterator.next(); in relocate() local
61 if (rel == nullptr) { in relocate()
65 ElfW(Word) type = ELFW(R_TYPE)(rel->r_info); in relocate()
66 ElfW(Word) sym = ELFW(R_SYM)(rel->r_info); in relocate()
68 ElfW(Addr) reloc = static_cast<ElfW(Addr)>(rel->r_offset + load_bias); in relocate()
109 if (ELF64_R_TYPE2(rel->r_info) != R_MIPS_64 || in relocate()
110 ELF64_R_TYPE3(rel->r_info) != R_MIPS_NONE) { in relocate()
112 type, static_cast<unsigned>(ELF64_R_TYPE2(rel->r_info)), in relocate()
113 static_cast<unsigned>(ELF64_R_TYPE3(rel->r_info)), rel, idx); in relocate()
118 MARK(rel->r_offset); in relocate()
[all …]
Dlinker.cpp2446 static ElfW(Addr) get_addend(ElfW(Rel)* rel, ElfW(Addr) reloc_addr) { in get_addend() argument
2447 if (ELFW(R_TYPE)(rel->r_info) == R_GENERIC_RELATIVE || in get_addend()
2448 ELFW(R_TYPE)(rel->r_info) == R_GENERIC_IRELATIVE) { in get_addend()
2459 const auto rel = rel_iterator.next(); in relocate() local
2460 if (rel == nullptr) { in relocate()
2464 ElfW(Word) type = ELFW(R_TYPE)(rel->r_info); in relocate()
2465 ElfW(Word) sym = ELFW(R_SYM)(rel->r_info); in relocate()
2467 ElfW(Addr) reloc = static_cast<ElfW(Addr)>(rel->r_offset + load_bias); in relocate()
2470 ElfW(Addr) addend = get_addend(rel, reloc); in relocate()
2545 DL_ERR("unknown weak reloc type %d @ %p (%zu)", type, rel, idx); in relocate()
[all …]
/bionic/tools/relocation_packer/src/
Delf_file.cc982 typename ELF::Rel rel; in ConvertRelaVectorToRelVector() local
983 rel.r_offset = rela.r_offset; in ConvertRelaVectorToRelVector()
984 rel.r_info = rela.r_info; in ConvertRelaVectorToRelVector()
986 rel_vector->push_back(rel); in ConvertRelaVectorToRelVector()