/llvm-project/llvm/include/llvm/MC/ |
H A D | MCELFExtras.h | 39 (Addend != uint(CR.r_addend) ? 4 : 0); in encodeCrel() 56 encodeSLEB128(std::make_signed_t<uint>(CR.r_addend - Addend), OS); in encodeCrel() 57 Addend = CR.r_addend; in encodeCrel()
|
/llvm-project/lld/test/ELF/ |
H A D | emit-relocs-icf2.s | 3 ## On RELA targets, r_addend may be updated for --emit-relocs.
|
H A D | ppc32-relocatable-got2.s | 3 ## If r_addend indicates .got2, adjust it by the local .got2's output section offset.
|
/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | gv-offset-folding.ll | 8 ; which allows you to store the offset in the r_addend of the relocation entry.
|
/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_dynamic_shadow.cpp | 105 ElfW(Addr) resolver = r->r_addend; in InitShadowGOT()
|
/llvm-project/llvm/lib/Object/ |
H A D | ELF.cpp | 430 Relas[I++].r_addend = Crel.r_addend; in decodeCrel() 509 R.r_addend = Addend; in android_relas() 756 FunctionOffsetTranslations[Rela.r_offset] = Rela.r_addend; in decodeBBAddrMapImpl()
|
/llvm-project/lld/ELF/ |
H A D | SyntheticSections.cpp | 1784 p->r_addend = rel.addend; in updateAllocSize() 1853 // RELOCATION_GROUPED_BY_ADDEND_FLAG are set) the r_addend delta for in updateAllocSize() 1864 // RELOCATION_GROUPED_BY_ADDEND_FLAG is not set) the r_addend delta for in updateAllocSize() 1886 r.r_addend = ctx.arg.isRela ? rel.computeAddend(ctx) : 0; in updateAllocSize() 1928 // For Rela, we also want to sort by r_addend when r_info is the same. This in updateAllocSize() 1929 // enables us to group by r_addend as well. in updateAllocSize() 1933 if (a.r_addend != b.r_addend) in updateAllocSize() 1934 return a.r_addend < b.r_addend; in updateAllocSize() [all...] |
H A D | Relocations.h | 288 crel.r_addend += static_cast<uint>(readSLEB128(p)); 337 return rel.r_addend; 341 return rel.r_addend;
|
H A D | InputSection.cpp | 172 relas[i].r_addend = r.r_addend; in getOffset() 486 p->r_addend = rel.addend; in copyRelocations() 546 p->r_addend = in getAArch64UndefinedRelativeWeakVA() 557 p->r_addend >= 0x8000 && sec->file->ppc32Got2) { in getAArch64UndefinedRelativeWeakVA() 560 // (r_addend>=0x8000), after linking, r30 should be relative to the output in getRISCVUndefinedRelativeWeakVA() 561 // section .got2 . To compensate for the shift, adjust r_addend by in getRISCVUndefinedRelativeWeakVA() 563 p->r_addend += sec->file->ppc32Got2->outSecOff; in getRISCVUndefinedRelativeWeakVA()
|
H A D | MarkLive.cpp | 86 return rel.r_addend; in getAddend() 93 return rel.r_addend; in resolveReloc()
|
/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 349 elf_sxword r_addend; ///< Constant part of expression. member
|
H A D | ELFHeader.cpp | 437 if (!GetMaxS64(data, offset, &r_addend, byte_size)) in Parse()
|
H A D | ObjectFileELF.cpp | 207 return llvm::cast<ELFRela *>(rel.reloc)->r_addend; in RelocAddend32() 214 return llvm::cast<ELFRela *>(rel.reloc)->r_addend; in RelocAddend64()
|
/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | ELF.h | 1418 Elf32_Sword r_addend; // Compute value for relocatable field by adding this 1454 Elf64_Sxword r_addend; // Compute value for relocatable field by adding this. 1472 std::conditional_t<Is64, int64_t, int32_t> r_addend; 1385 Elf32_Sword r_addend; // Compute value for relocatable field by adding this global() member 1421 Elf64_Sxword r_addend; // Compute value for relocatable field by adding this. global() member 1439 std::conditional_t<Is64, int64_t, int32_t> r_addend; global() member
|
/llvm-project/llvm/tools/llvm-objdump/ |
H A D | ELFDump.cpp | 108 Addend = ERela.r_addend; in getRelocationValueString() 112 Addend = ERela->r_addend; in getRelocationValueString()
|
/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF_loongarch.cpp | 366 int64_t Addend = Rel.r_addend;
|
H A D | ELF_x86_64.cpp | 152 int64_t Addend = Rel.r_addend; in addSingleRelocation()
|
H A D | ELF_aarch64.cpp | 262 int64_t Addend = Rel.r_addend; in addSingleRelocation()
|
H A D | ELF_ppc64.cpp | 264 int64_t Addend = Rel.r_addend; in addSingleRelocation()
|
H A D | ELF_riscv.cpp | 883 int64_t Addend = Rel.r_addend; in addSingleRelocation()
|
/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 429 Elf_Sword r_addend; // Compute value for relocatable field by adding this 484 Elf_Sxword r_addend; // Compute value for relocatable field by adding this. 495 std::conditional_t<Is64, int64_t, int32_t> r_addend;
|
H A D | ELFObjectFile.h | 1158 return (int64_t)getRela(Rel)->r_addend; in getRelocationAddend() 1160 return (int64_t)getCrel(Rel).r_addend; in getRelocationAddend()
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | fold-add.ll | 62 ;; the large r_addend can easily cause a relocation overflow.
|
/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ARMEHABIPrinter.h | 422 RelA.r_addend = 0; in FindExceptionTable()
|
/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObject.cpp | 969 Rela.r_addend = Addend; 1651 ToSet = Rela.r_addend;
|