Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_mips.cpp57 const auto rel = rel_iterator.next(); in relocate() local
59 if (rel == nullptr) { in relocate()
63 ElfW(Word) type = ELFW(R_TYPE)(rel->r_info); in relocate()
64 ElfW(Word) sym = ELFW(R_SYM)(rel->r_info); in relocate()
66 ElfW(Addr) reloc = static_cast<ElfW(Addr)>(rel->r_offset + load_bias); in relocate()
107 if (ELF64_R_TYPE2(rel->r_info) != R_MIPS_64 || in relocate()
108 ELF64_R_TYPE3(rel->r_info) != R_MIPS_NONE) { in relocate()
110 type, static_cast<unsigned>(ELF64_R_TYPE2(rel->r_info)), in relocate()
111 static_cast<unsigned>(ELF64_R_TYPE3(rel->r_info)), rel, idx); in relocate()
116 MARK(rel->r_offset); in relocate()
[all …]
Dlinker.cpp2707 static ElfW(Addr) get_addend(ElfW(Rel)* rel, ElfW(Addr) reloc_addr) { in get_addend() argument
2708 if (ELFW(R_TYPE)(rel->r_info) == R_GENERIC_RELATIVE || in get_addend()
2709 ELFW(R_TYPE)(rel->r_info) == R_GENERIC_IRELATIVE) { in get_addend()
2720 const auto rel = rel_iterator.next(); in relocate() local
2721 if (rel == nullptr) { in relocate()
2725 ElfW(Word) type = ELFW(R_TYPE)(rel->r_info); in relocate()
2726 ElfW(Word) sym = ELFW(R_SYM)(rel->r_info); in relocate()
2728 ElfW(Addr) reloc = static_cast<ElfW(Addr)>(rel->r_offset + load_bias); in relocate()
2731 ElfW(Addr) addend = get_addend(rel, reloc); in relocate()
2806 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()