| /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/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 77 case Reloc::Static: in print() 80 case Reloc::PIC_: in print() 83 case Reloc::DynamicNoPIC: in print() 86 case Reloc::ROPI: in print() 89 case Reloc::RWPI: in print() 92 case Reloc::ROPI_RWPI: in print()
|
| /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/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 | 144 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent() 170 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel() 206 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal() 251 if (RM == Reloc::Static) in shouldAssumeDSOLocal() 266 Reloc::Model RM = getRelocationModel(); in getTLSModel() 267 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetMachine.cpp | 72 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 73 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 87 getEffectiveSparcCodeModel(std::optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel() 99 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel() 108 std::optional<Reloc::Model> RM, in SparcTargetMachine() 212 std::optional<Reloc::Model> RM, in SparcV8TargetMachine() 222 std::optional<Reloc::Model> RM, in SparcV9TargetMachine() 232 std::optional<Reloc::Model> RM, in SparcelTargetMachine()
|
| H A D | SparcTargetMachine.h | 32 std::optional<Reloc::Model> RM, 58 std::optional<Reloc::Model> RM, 71 std::optional<Reloc::Model> RM, 82 std::optional<Reloc::Model> RM,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFPreserveDIType.cpp | 83 uint32_t Reloc; in BPFPreserveDITypeImpl() local 85 Reloc = BTF::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl() 87 Reloc = BTF::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl() 97 if (Reloc == BTF::BTF_TYPE_ID_REMOTE) { in BPFPreserveDITypeImpl() 111 BaseName + std::to_string(Count) + "$" + std::to_string(Reloc); in BPFPreserveDITypeImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 107 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 110 if (!RM || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel() 111 return Reloc::Static; in getEffectiveRelocModel() 146 Reloc::Model RM, bool JIT) { in getEffectiveSystemZCodeModel() 155 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel() 162 std::optional<Reloc::Model> RM, in SystemZTargetMachine()
|
| /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 79 const Reloc &); 85 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() 34 StringRef Reloc::getReferentString() const { in getReferentString() 60 const InputSection *isec, const Reloc &r) { in validateSymbolRelocation() 120 void macho::reportRangeError(void *loc, const Reloc &r, const Twine &v, in reportRangeError()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86TargetMachine.cpp | 176 static Reloc::Model getEffectiveRelocModel(const Triple &TT, bool JIT, in getEffectiveRelocModel() 177 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 183 return Reloc::Static; in getEffectiveRelocModel() 190 return Reloc::PIC_; in getEffectiveRelocModel() 191 return Reloc::DynamicNoPIC; in getEffectiveRelocModel() 194 return Reloc::PIC_; in getEffectiveRelocModel() 195 return Reloc::Static; in getEffectiveRelocModel() 202 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel() 204 return Reloc::PIC_; in getEffectiveRelocModel() 206 return Reloc::Static; in getEffectiveRelocModel() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaTargetMachine.cpp | 42 static Reloc::Model getEffectiveRelocModel(bool JIT, in getEffectiveRelocModel() 43 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 45 return Reloc::Static; in getEffectiveRelocModel() 52 std::optional<Reloc::Model> RM, in XtensaTargetMachine() 67 std::optional<Reloc::Model> RM, in XtensaTargetMachine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetMachine.cpp | 181 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 182 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 185 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel() 187 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel() 192 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel() 193 return Reloc::Static; in getEffectiveRelocModel() 203 std::optional<Reloc::Model> RM, in ARMBaseTargetMachine() 336 std::optional<Reloc::Model> RM, in ARMLETargetMachine() 344 std::optional<Reloc::Model> RM, in ARMBETargetMachine()
|
| /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/Target/MSP430/ |
| H A D | MSP430TargetMachine.cpp | 33 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 34 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 45 std::optional<Reloc::Model> RM, in MSP430TargetMachine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetMachine.cpp | 51 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 52 return RM.value_or(Reloc::PIC_); in getEffectiveRelocModel() 57 const TargetOptions &Options, std::optional<Reloc::Model> RM, in LanaiTargetMachine()
|
| /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/XCore/ |
| H A D | XCoreTargetMachine.cpp | 28 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 29 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 47 std::optional<Reloc::Model> RM, in XCoreTargetMachine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VETargetMachine.cpp | 70 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 71 return RM.value_or(Reloc::Static); in getEffectiveRelocModel() 91 std::optional<Reloc::Model> RM, in VETargetMachine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonAsmBackend.cpp | 667 uint32_t Reloc; in applyFixup() local 691 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup() 701 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup() 713 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup() 724 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup() 736 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup() 742 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup() 751 Reloc = Value; in applyFixup() 763 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup() 770 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 | 1043 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local 1045 Reloc.Type = type; in parseRelocSection() 1046 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection() 1047 if (Reloc.Offset < PreviousOffset) in parseRelocSection() 1053 msg + ": " + Twine(Symbols[Reloc.Index].Info.Name), in parseRelocSection() 1057 PreviousOffset = Reloc.Offset; in parseRelocSection() 1058 Reloc.Index = readVaruint32(Ctx); in parseRelocSection() 1068 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection() 1072 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection() 1076 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/M68k/ |
| H A D | M68kTargetMachine.cpp | 78 Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 79 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel() 82 return Reloc::Static; in getEffectiveRelocModel() 101 std::optional<Reloc::Model> RM, in M68kTargetMachine()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | WinCOFFObjectWriter.cpp | 878 COFFRelocation Reloc; in recordRelocation() local 880 Reloc.Data.SymbolTableIndex = 0; in recordRelocation() 881 Reloc.Data.VirtualAddress = Asm->getFragmentOffset(F); in recordRelocation() 890 Reloc.Symb = Section->Symbol; in recordRelocation() 900 Reloc.Symb = Section->OffsetSymbols[LabelIndex - 1]; in recordRelocation() 902 Reloc.Symb = Section->OffsetSymbols.back(); in recordRelocation() 903 FixedValue -= Reloc.Symb->Data.Value; in recordRelocation() 910 Reloc.Symb = SymbolMap[&A]; in recordRelocation() 913 ++Reloc.Symb->Relocations; in recordRelocation() 915 Reloc.Data.VirtualAddress += Fixup.getOffset(); in recordRelocation() [all …]
|