/openbsd/libexec/ld.so/powerpc/ |
H A D | rtld_machine.c | 61 Elf_RelA *relas; in _dl_md_reloc() local 71 if (relas == NULL) in _dl_md_reloc() 85 *r_addr = loff + relas->r_addend; in _dl_md_reloc() 102 sym += ELF_R_SYM(relas->r_info); in _dl_md_reloc() 105 if (ELF_R_SYM(relas->r_info) && in _dl_md_reloc() 134 relas->r_addend; in _dl_md_reloc() 144 relas->r_addend; in _dl_md_reloc() 181 val = loff + relas->r_addend; in _dl_md_reloc() 193 val = loff + relas->r_addend; in _dl_md_reloc() 205 val = loff + relas->r_addend; in _dl_md_reloc() [all …]
|
/openbsd/libexec/ld.so/powerpc64/ |
H A D | rtld_machine.c | 60 Elf_RelA *relas; in _dl_md_reloc() local 70 if (relas == NULL) in _dl_md_reloc() 81 *r_addr = loff + relas->r_addend; in _dl_md_reloc() 98 sym += ELF_R_SYM(relas->r_info); in _dl_md_reloc() 101 if (ELF_R_SYM(relas->r_info) && in _dl_md_reloc() 130 relas->r_addend; in _dl_md_reloc() 140 relas->r_addend; in _dl_md_reloc() 177 val = loff + relas->r_addend; in _dl_md_reloc() 189 val = loff + relas->r_addend; in _dl_md_reloc() 201 val = loff + relas->r_addend; in _dl_md_reloc() [all …]
|
/openbsd/libexec/ld.so/alpha/ |
H A D | rtld_machine.c | 58 Elf_RelA *relas; in _dl_md_reloc() local 63 relas = (Elf_RelA *)(object->Dyn.info[rel]); in _dl_md_reloc() 65 if (relas == NULL) in _dl_md_reloc() 75 for (i = 0; i < relrel; i++, relas++) { in _dl_md_reloc() 89 for (; i < numrela; i++, relas++) { in _dl_md_reloc() 102 sym += ELF_R_SYM(relas->r_info); in _dl_md_reloc() 105 switch (ELF_R_TYPE(relas->r_info)) { in _dl_md_reloc() 113 relas->r_addend; in _dl_md_reloc() 139 relas->r_addend; in _dl_md_reloc() 143 *r_addr = prev_value + relas->r_addend; in _dl_md_reloc() [all …]
|
/openbsd/libexec/ld.so/m88k/ |
H A D | rtld_machine.c | 70 Elf_RelA *relas; in _dl_md_reloc() local 80 if (relas == NULL) in _dl_md_reloc() 87 for (i = 0; i < relrela; i++, relas++) { in _dl_md_reloc() 91 *r_addr = relas->r_addend + loff; in _dl_md_reloc() 93 for (; i < numrela; i++, relas++) { in _dl_md_reloc() 100 type = ELF_R_TYPE(relas->r_info); in _dl_md_reloc() 109 sym += ELF_R_SYM(relas->r_info); in _dl_md_reloc() 133 if (ELF_R_SYM(relas->r_info) && in _dl_md_reloc() 164 relas->r_addend + loff, in _dl_md_reloc() 172 addend = relas->r_addend; in _dl_md_reloc() [all …]
|
/openbsd/libexec/ld.so/sparc64/ |
H A D | rtld_machine.c | 215 Elf_RelA *relas; in _dl_md_reloc() local 222 if (relas == NULL) in _dl_md_reloc() 229 for (i = 0; i < relrel; i++, relas++) { in _dl_md_reloc() 233 *where = relas->r_addend + loff; in _dl_md_reloc() 235 for (; i < numrela; i++, relas++) { in _dl_md_reloc() 241 type = ELF_R_TYPE(relas->r_info); in _dl_md_reloc() 249 value = relas->r_addend; in _dl_md_reloc() 257 sym += ELF_R_SYM(relas->r_info); in _dl_md_reloc() 749 Elf_RelA *relas; in _dl_md_reloc_all_plt() local 755 if (relas == NULL) in _dl_md_reloc_all_plt() [all …]
|
/openbsd/gnu/llvm/lld/ELF/ |
H A D | ICF.cpp | 328 : constantEq(a, ra.relas, b, rb.relas); in equalsConstant() 377 : variableEq(a, ra.relas, b, rb.relas); in equalsVariable() 509 combineRelocHashes<ELFT>(cnt, s, rels.relas); in run()
|
H A D | MarkLive.cpp | 242 else if (rels.relas.size()) in run() 243 scanEhFrameSection(*eh, rels.relas); in run() 309 for (const typename ELFT::Rela &rel : rels.relas) in mark()
|
H A D | DWARF.cpp | 141 return findAux(*sec.sec, pos, rels.relas); in find()
|
H A D | InputSection.cpp | 147 ret.relas = ArrayRef(reinterpret_cast<const typename ELFT::Rela *>( in relsOrRelas() 981 sec->relocateNonAlloc<ELFT>(buf, rels.relas); in relocate() 1164 split<ELFT>(sortRels(rels.relas, storage)); in split()
|
H A D | InputSection.h | 39 ArrayRef<typename ELFT::Rela> relas; member
|
H A D | Driver.cpp | 941 ArrayRef<typename ELFT::Rela> relas = in processCallGraphRelocations() local 942 CHECK(obj.relas(sec), "could not retrieve cg profile rela section"); in processCallGraphRelocations() 943 for (const typename ELFT::Rela &rel : relas) in processCallGraphRelocations() 2176 sym = &s->getFile<ELFT>()->getRelocTargetSym(rels.relas[0]); in readSymbolPartitionSection()
|
H A D | Relocations.cpp | 1529 scan<ELFT>(rels.relas); in scanSection()
|
H A D | SyntheticSections.cpp | 432 addRecords<ELFT>(sec, rels.relas); in addSectionAux() 466 iterateFDEWithLSDAAux<ELFT>(*sec, rels.relas, ciesWithLSDA, fn); in iterateFDEWithLSDA()
|
/openbsd/gnu/llvm/lld/ELF/Arch/ |
H A D | PPC64.cpp | 327 ArrayRef<typename ELFT::Rela> relas = in getRelaTocSymAndAddend() local 328 tocSec->template relsOrRelas<ELFT>().relas; in getRelaTocSymAndAddend() 329 if (relas.empty()) in getRelaTocSymAndAddend() 331 uint64_t index = std::min<uint64_t>(offset / 8, relas.size() - 1); in getRelaTocSymAndAddend() 333 if (relas[index].r_offset == offset) { in getRelaTocSymAndAddend() 334 Symbol &sym = tocSec->getFile<ELFT>()->getRelocTargetSym(relas[index]); in getRelaTocSymAndAddend() 335 return {dyn_cast<Defined>(&sym), getAddend<ELFT>(relas[index])}; in getRelaTocSymAndAddend() 337 if (relas[index].r_offset < offset || index == 0) in getRelaTocSymAndAddend()
|
/openbsd/gnu/usr.bin/binutils-2.17/binutils/ |
H A D | readelf.c | 659 Elf_Internal_Rela *relas; in slurp_rela_relocs() local 673 relas = cmalloc (nrelas, sizeof (Elf_Internal_Rela)); in slurp_rela_relocs() 675 if (relas == NULL) in slurp_rela_relocs() 684 relas[i].r_offset = BYTE_GET (erelas[i].r_offset); in slurp_rela_relocs() 685 relas[i].r_info = BYTE_GET (erelas[i].r_info); in slurp_rela_relocs() 686 relas[i].r_addend = BYTE_GET (erelas[i].r_addend); in slurp_rela_relocs() 703 if (relas == NULL) in slurp_rela_relocs() 712 relas[i].r_offset = BYTE_GET (erelas[i].r_offset); in slurp_rela_relocs() 713 relas[i].r_info = BYTE_GET (erelas[i].r_info); in slurp_rela_relocs() 714 relas[i].r_addend = BYTE_GET (erelas[i].r_addend); in slurp_rela_relocs() [all …]
|
H A D | ChangeLog-0203 | 1115 (dump_relocations): Remove relas variable, change Elf_Internal_Rel to
|
/openbsd/gnu/usr.bin/binutils/binutils/ |
H A D | readelf.c | 705 Elf_Internal_Rela *relas; in slurp_rela_relocs() local 719 relas = malloc (nrelas * sizeof (Elf_Internal_Rela)); in slurp_rela_relocs() 721 if (relas == NULL) in slurp_rela_relocs() 729 relas[i].r_offset = BYTE_GET (erelas[i].r_offset); in slurp_rela_relocs() 730 relas[i].r_info = BYTE_GET (erelas[i].r_info); in slurp_rela_relocs() 731 relas[i].r_addend = BYTE_GET (erelas[i].r_addend); in slurp_rela_relocs() 748 if (relas == NULL) in slurp_rela_relocs() 756 relas[i].r_offset = BYTE_GET8 (erelas[i].r_offset); in slurp_rela_relocs() 757 relas[i].r_info = BYTE_GET8 (erelas[i].r_info); in slurp_rela_relocs() 758 relas[i].r_addend = BYTE_GET8 (erelas[i].r_addend); in slurp_rela_relocs() [all …]
|
H A D | ChangeLog-0203 | 1115 (dump_relocations): Remove relas variable, change Elf_Internal_Rel to
|
/openbsd/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELFLinkGraphBuilder.h | 548 auto RelEntries = Obj.relas(RelSect); in forEachRelaRelocation()
|
/openbsd/gnu/llvm/llvm/include/llvm/Object/ |
H A D | ELF.h | 266 Expected<Elf_Rela_Range> relas(const Elf_Shdr &Sec) const { in relas() function
|
/openbsd/gnu/llvm/llvm/tools/obj2yaml/ |
H A D | elf2yaml.cpp | 1120 auto Rels = Obj.relas(*Shdr); in dumpRelocSection()
|
/openbsd/gnu/llvm/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 3018 Elf_Rela_Range Rels = unwrapOrError(FileName, Obj.relas(*PltRelSec)); in getPltSym() 5924 if (Expected<Elf_Rela_Range> RangeOrErr = Obj.relas(Sec)) { in forEachRelocationDo() 7051 Obj.relas(*CGRelSection); in getSymbolIndices()
|
/openbsd/gnu/llvm/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObject.cpp | 1848 ElfFile.relas(*Shdr); in readSections()
|