Home
last modified time | relevance | path

Searched refs:Reloc (Results 1 – 25 of 180) sorted by relevance

12345678

/openbsd-src/gnu/llvm/llvm/lib/XRay/
H A DInstrumentationMap.cpp116 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local
118 if (Supports && Supports(Reloc.getType())) { in loadObj()
119 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj()
123 {Reloc.getOffset(), in loadObj()
124 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, 0)}); in loadObj()
126 } else if (Supports && Supports(Reloc.getType())) { in loadObj()
127 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj()
129 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj()
134 {Reloc.getOffset(), in loadObj()
135 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DWasmDumper.cpp70 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()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp83 case Reloc::Static: in print()
86 case Reloc::PIC_: in print()
89 case Reloc::DynamicNoPIC: in print()
92 case Reloc::ROPI: in print()
95 case Reloc::RWPI: in print()
98 case Reloc::ROPI_RWPI: in print()
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcTargetMachine.cpp66 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
67 return RM.value_or(Reloc::Static); in getEffectiveRelocModel()
81 getEffectiveSparcCodeModel(std::optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel()
93 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel()
102 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 DSparcTargetMachine.h32 std::optional<Reloc::Model> RM,
59 std::optional<Reloc::Model> RM,
72 std::optional<Reloc::Model> RM,
83 std::optional<Reloc::Model> RM,
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/
H A DXtensaTargetMachine.cpp40 static Reloc::Model getEffectiveRelocModel(bool JIT, in getEffectiveRelocModel()
41 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
43 return Reloc::Static; in getEffectiveRelocModel()
50 std::optional<Reloc::Model> RM, in XtensaTargetMachine()
64 std::optional<Reloc::Model> RM, in XtensaTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/
H A DTargetMachineC.cpp101 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, in LLVMCreateTargetMachine() argument
103 std::optional<Reloc::Model> RM; in LLVMCreateTargetMachine()
104 switch (Reloc){ in LLVMCreateTargetMachine()
106 RM = Reloc::Static; in LLVMCreateTargetMachine()
109 RM = Reloc::PIC_; in LLVMCreateTargetMachine()
112 RM = Reloc::DynamicNoPIC; in LLVMCreateTargetMachine()
115 RM = Reloc::ROPI; in LLVMCreateTargetMachine()
118 RM = Reloc::RWPI; in LLVMCreateTargetMachine()
121 RM = Reloc::ROPI_RWPI; in LLVMCreateTargetMachine()
H A DTargetMachine.cpp42 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent()
68 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel()
91 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal()
136 if (RM == Reloc::Static) in shouldAssumeDSOLocal()
156 Reloc::Model RM = getRelocationModel(); in getTLSModel()
157 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetMachine.cpp89 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
92 if (!RM || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel()
93 return Reloc::Static; in getEffectiveRelocModel()
128 Reloc::Model RM, bool JIT) { in getEffectiveSystemZCodeModel()
137 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel()
144 std::optional<Reloc::Model> RM, in SystemZTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86TargetMachine.cpp167 static Reloc::Model getEffectiveRelocModel(const Triple &TT, bool JIT, in getEffectiveRelocModel()
168 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
174 return Reloc::Static; in getEffectiveRelocModel()
181 return Reloc::PIC_; in getEffectiveRelocModel()
182 return Reloc::DynamicNoPIC; in getEffectiveRelocModel()
185 return Reloc::PIC_; in getEffectiveRelocModel()
186 return Reloc::Static; in getEffectiveRelocModel()
193 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel()
195 return Reloc::PIC_; in getEffectiveRelocModel()
197 return Reloc::Static; in getEffectiveRelocModel()
[all …]
/openbsd-src/gnu/llvm/lld/MachO/
H A DRelocations.h52 struct Reloc { struct
64 Reloc() = default; argument
66 Reloc(uint8_t type, bool pcrel, uint8_t length, uint32_t offset, in Reloc() function
73 const Reloc &);
79 void reportRangeError(void *loc, const Reloc &, const llvm::Twine &v,
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetMachine.cpp199 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
200 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
203 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel()
205 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel()
210 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel()
211 return Reloc::Static; in getEffectiveRelocModel()
221 std::optional<Reloc::Model> RM, in ARMBaseTargetMachine()
328 std::optional<Reloc::Model> RM, in ARMLETargetMachine()
336 std::optional<Reloc::Model> RM, in ARMBETargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/
H A DMSP430TargetMachine.cpp33 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiTargetMachine.cpp54 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARC/
H A DARCTargetMachine.cpp25 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRTargetMachine.cpp43 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
44 return RM.value_or(Reloc::Static); in getEffectiveRelocModel()
50 std::optional<Reloc::Model> RM, in AVRTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreTargetMachine.cpp29 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVETargetMachine.cpp68 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()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldCOFF.cpp87 RelocationValueRef Reloc; in getDLLImportOffset() local
88 Reloc.SymbolName = Name.data(); in getDLLImportOffset()
89 auto I = Stubs.find(Reloc); in getDLLImportOffset()
99 Stubs[Reloc] = EntryOffset; in getDLLImportOffset()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVTargetMachine.cpp56 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
58 return Reloc::PIC_; in getEffectiveRelocModel()
68 std::optional<Reloc::Model> RM, in SPIRVTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFPreserveDIType.cpp83 uint32_t Reloc; in BPFPreserveDITypeImpl() local
85 Reloc = BPFCoreSharedInfo::BTF_TYPE_ID_LOCAL; in BPFPreserveDITypeImpl()
87 Reloc = BPFCoreSharedInfo::BTF_TYPE_ID_REMOTE; in BPFPreserveDITypeImpl()
110 BaseName + std::to_string(Count) + "$" + std::to_string(Reloc); in BPFPreserveDITypeImpl()
H A DBPFTargetMachine.cpp62 static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
63 return RM.value_or(Reloc::PIC_); in getEffectiveRelocModel()
69 std::optional<Reloc::Model> RM, in BPFTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DWasmObjectFile.cpp929 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local
931 Reloc.Type = type; in parseRelocSection()
932 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection()
933 if (Reloc.Offset < PreviousOffset) in parseRelocSection()
936 PreviousOffset = Reloc.Offset; in parseRelocSection()
937 Reloc.Index = readVaruint32(Ctx); in parseRelocSection()
946 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection()
951 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection()
956 if (Reloc.Index >= Signatures.size()) in parseRelocSection()
963 if (!isValidGlobalSymbol(Reloc.Index) && in parseRelocSection()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonAsmBackend.cpp427 uint32_t Reloc; in applyFixup() local
451 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup()
461 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup()
473 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup()
484 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup()
496 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup()
502 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup()
511 Reloc = Value; in applyFixup()
523 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup()
530 InstAddr[i] |= uint8_t(Reloc >> (i * 8)) & 0xff; // Apply new reloc in applyFixup()
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kTargetMachine.cpp75 Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel()
76 std::optional<Reloc::Model> RM) { in getEffectiveRelocModel()
79 return Reloc::Static; in getEffectiveRelocModel()
100 std::optional<Reloc::Model> RM, in M68kTargetMachine()

12345678