Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/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()
210 for (const RelocationRef &Reloc : Section.relocations()) printSectionHeaders() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp77 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 DInstrumentationMap.cpp117 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 DTargetMachineC.cpp40 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 DTargetMachine.cpp144 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 DSparcTargetMachine.cpp72 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 DSparcTargetMachine.h32 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 DBPFPreserveDIType.cpp83 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 DSystemZTargetMachine.cpp107 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 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
79 const Reloc &);
85 void reportRangeError(void *loc, const Reloc &, const llvm::Twine &v,
H A DRelocations.cpp21 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 DX86TargetMachine.cpp176 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 DXtensaTargetMachine.cpp42 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 DARMTargetMachine.cpp181 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 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()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetMachine.cpp51 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 DAVRTargetMachine.cpp42 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 DXCoreTargetMachine.cpp28 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 DVETargetMachine.cpp70 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 DHexagonAsmBackend.cpp667 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 DWasmObjectFile.cpp1043 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 DARM64Common.cpp41 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 DM68kTargetMachine.cpp78 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 DWinCOFFObjectWriter.cpp878 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 …]

1234567