/freebsd/contrib/llvm-project/llvm/lib/XRay/ |
H A D | InstrumentationMap.cpp | 117 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local 119 if (Supports && Supports(Reloc.getType())) { in loadObj() 120 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 124 {Reloc.getOffset(), in loadObj() 125 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, 0)}); in loadObj() 127 } else if (Supports && Supports(Reloc.getType())) { in loadObj() 128 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj() 130 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 135 {Reloc.getOffset(), in loadObj() 136 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | WasmDumper.cpp | 70 void printRelocation(const SectionRef &Section, const RelocationRef &Reloc); 84 const RelocationRef &Reloc) { in printRelocation() argument 86 uint64_t RelocType = Reloc.getType(); in printRelocation() 87 Reloc.getTypeName(RelocTypeName); in printRelocation() 88 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc); in printRelocation() 91 symbol_iterator SI = Reloc.getSymbol(); in printRelocation() 100 W.printHex("Offset", Reloc.getOffset()); in printRelocation() 109 OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << " "; in printRelocation() 130 for (const RelocationRef &Reloc : Section.relocations()) { in printRelocations() local 137 printRelocation(Section, Reloc); in printRelocations() 210 for (const RelocationRef &Reloc : Section.relocations()) printSectionHeaders() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | SparcTargetMachine.cpp | 65 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 66 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 80 getEffectiveSparcCodeModel(std::optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel() 92 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel() 101 std::optional<Reloc::Model> RM, in SparcTargetMachine() 203 std::optional<Reloc::Model> RM, in SparcV8TargetMachine() 213 std::optional<Reloc::Model> RM, in SparcV9TargetMachine() 223 std::optional<Reloc::Model> RM, in SparcelTargetMachine()
|
H A D | SparcTargetMachine.h | 31 std::optional<Reloc::Model> RM, 57 std::optional<Reloc::Model> RM, 70 std::optional<Reloc::Model> RM, 81 std::optional<Reloc::Model> RM,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ |
H A D | TargetMachineC.cpp | 40 std::optional<Reloc::Model> RM; 164 LLVMRelocMode Reloc) { in LLVMTargetMachineOptionsSetRelocMode() argument 165 std::optional<Reloc::Model> RM; in LLVMTargetMachineOptionsSetRelocMode() 167 switch (Reloc) { in LLVMTargetMachineOptionsSetRelocMode() 169 RM = Reloc::Static; in LLVMTargetMachineOptionsSetRelocMode() 172 RM = Reloc::PIC_; in LLVMTargetMachineOptionsSetRelocMode() 175 RM = Reloc::DynamicNoPIC; in LLVMTargetMachineOptionsSetRelocMode() 178 RM = Reloc::ROPI; in LLVMTargetMachineOptionsSetRelocMode() 181 RM = Reloc::RWPI; in LLVMTargetMachineOptionsSetRelocMode() 184 RM = Reloc::ROPI_RWPI; in LLVMTargetMachineOptionsSetRelocMode() [all …]
|
H A D | TargetMachine.cpp | 118 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent() 144 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel() 180 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal() 225 if (RM == Reloc::Static) in shouldAssumeDSOLocal() 240 Reloc::Model RM = getRelocationModel(); in getTLSModel() 241 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | JITTargetMachineBuilder.cpp | 79 case Reloc::Static: in print() 82 case Reloc::PIC_: in print() 85 case Reloc::DynamicNoPIC: in print() 88 case Reloc::ROPI: in print() 91 case Reloc::RWPI: in print() 94 case Reloc::ROPI_RWPI: in print()
|
/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | Relocations.h | 52 struct Reloc { struct 64 Reloc() = default; argument 66 Reloc(uint8_t type, bool pcrel, uint8_t length, uint32_t offset, in Reloc() function 75 const Reloc &); 81 void reportRangeError(void *loc, const Reloc &, const llvm::Twine &v,
|
H A D | Relocations.cpp | 21 static_assert(sizeof(void *) != 8 || sizeof(Reloc) == 24, 24 InputSection *Reloc::getReferentInputSection() const { in getReferentInputSection() 35 const InputSection *isec, const Reloc &r) { in validateSymbolRelocation() 95 void macho::reportRangeError(void *loc, const Reloc &r, const Twine &v, in reportRangeError()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaTargetMachine.cpp | 38 static Reloc::Model getEffectiveRelocModel(bool JIT, in getEffectiveRelocModel() 39 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 41 return Reloc::Static; in getEffectiveRelocModel() 48 std::optional<Reloc::Model> RM, in XtensaTargetMachine() 62 std::optional<Reloc::Model> RM, in XtensaTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFPreserveDIType.cpp | 84 uint32_t Reloc; in BPFPreserveDITypeImpl() local 86 Reloc = BTF::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl() 88 Reloc = BTF::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl() 98 if (Reloc == BTF::BTF_TYPE_ID_REMOTE) { in BPFPreserveDITypeImpl() 112 BaseName + std::to_string(Count) + "$" + std::to_string(Reloc); in BPFPreserveDITypeImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetMachine.cpp | 174 static Reloc::Model getEffectiveRelocModel(const Triple &TT, bool JIT, in getEffectiveRelocModel() 175 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 181 return Reloc::Static; in getEffectiveRelocModel() 188 return Reloc::PIC_; in getEffectiveRelocModel() 189 return Reloc::DynamicNoPIC; in getEffectiveRelocModel() 192 return Reloc::PIC_; in getEffectiveRelocModel() 193 return Reloc::Static; in getEffectiveRelocModel() 200 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel() 202 return Reloc::PIC_; in getEffectiveRelocModel() 204 return Reloc::Static; in getEffectiveRelocModel() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetMachine.cpp | 95 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 98 if (!RM || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel() 99 return Reloc::Static; in getEffectiveRelocModel() 134 Reloc::Model RM, bool JIT) { in getEffectiveSystemZCodeModel() 143 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel() 150 std::optional<Reloc::Model> RM, in SystemZTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetMachine.cpp | 200 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 201 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 204 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel() 206 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel() 211 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel() 212 return Reloc::Static; in getEffectiveRelocModel() 222 std::optional<Reloc::Model> RM, in ARMBaseTargetMachine() 332 std::optional<Reloc::Model> RM, in ARMLETargetMachine() 340 std::optional<Reloc::Model> RM, in ARMBETargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430TargetMachine.cpp | 32 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 33 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 44 std::optional<Reloc::Model> RM, in MSP430TargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiTargetMachine.cpp | 54 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 55 return RM.value_or(Reloc::PIC_); in getEffectiveRelocModel() 60 const TargetOptions &Options, std::optional<Reloc::Model> RM, in LanaiTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreTargetMachine.cpp | 29 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 30 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 48 std::optional<Reloc::Model> RM, in XCoreTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRTargetMachine.cpp | 42 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 43 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 49 std::optional<Reloc::Model> RM, in AVRTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCTargetMachine.cpp | 25 static Reloc::Model getRelocModel(std::optional<Reloc::Model> RM) { in getRelocModel() 26 return RM.value_or(Reloc::Static); in getRelocModel() 33 std::optional<Reloc::Model> RM, in ARCTargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldCOFF.cpp | 88 RelocationValueRef Reloc; in getDLLImportOffset() 89 Reloc.SymbolName = Name.data(); in getDLLImportOffset() 90 auto I = Stubs.find(Reloc); in getDLLImportOffset() 100 Stubs[Reloc] = EntryOffset; in getDLLImportOffset() 87 RelocationValueRef Reloc; getDLLImportOffset() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VETargetMachine.cpp | 68 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 69 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 89 std::optional<Reloc::Model> RM, in VETargetMachine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonAsmBackend.cpp | 425 uint32_t Reloc; in applyFixup() local 449 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup() 459 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup() 471 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup() 482 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup() 494 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup() 500 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup() 509 Reloc = Value; in applyFixup() 521 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup() 528 InstAddr[i] |= uint8_t(Reloc >> (i * 8)) & 0xff; // Apply new reloc in applyFixup()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | WasmObjectFile.cpp | 1034 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local 1036 Reloc.Type = type; in parseRelocSection() 1037 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection() 1038 if (Reloc.Offset < PreviousOffset) in parseRelocSection() 1044 msg + ": " + Twine(Symbols[Reloc.Index].Info.Name), in parseRelocSection() 1048 PreviousOffset = Reloc.Offset; in parseRelocSection() 1049 Reloc.Index = readVaruint32(Ctx); in parseRelocSection() 1059 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection() 1063 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection() 1067 if (Reloc.Index >= Signatures.size()) in parseRelocSection() [all …]
|
/freebsd/contrib/llvm-project/lld/MachO/Arch/ |
H A D | ARM64Common.cpp | 41 static void writeValue(uint8_t *loc, const Reloc &r, uint64_t value) { in writeValue() 60 void ARM64Common::relocateOne(uint8_t *loc, const Reloc &r, uint64_t value, in relocateOne() 113 void ARM64Common::handleDtraceReloc(const Symbol *sym, const Reloc &r, in handleDtraceReloc() 141 void macho::reportUnalignedLdrStr(void *loc, const lld::macho::Reloc &r, in reportUnalignedLdrStr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVTargetMachine.cpp | 67 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 69 return Reloc::PIC_; in getEffectiveRelocModel() 79 std::optional<Reloc::Model> RM, in SPIRVTargetMachine()
|