/netbsd-src/external/apache2/llvm/dist/llvm/lib/XRay/ |
H A D | InstrumentationMap.cpp | 118 for (const object::RelocationRef &Reloc : Section.relocations()) { in loadObj() local 120 if (Supports && Supports(Reloc.getType())) { in loadObj() 121 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 125 {Reloc.getOffset(), in loadObj() 126 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, 0)}); in loadObj() 128 } else if (Supports && Supports(Reloc.getType())) { in loadObj() 129 auto AddendOrErr = object::ELFRelocationRef(Reloc).getAddend(); in loadObj() 131 Expected<uint64_t> ValueOrErr = Reloc.getSymbol()->getValue(); in loadObj() 136 {Reloc.getOffset(), in loadObj() 137 object::resolveRelocation(Resolver, Reloc, *ValueOrErr, A)}); in loadObj() [all …]
|
/netbsd-src/external/apache2/llvm/dist/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() [all …]
|
/netbsd-src/external/gpl3/binutils.old/dist/gold/ |
H A D | reloc-types.h | 43 typedef typename elfcpp::Rel<size, big_endian> Reloc; 48 get_reloc_addend(const Reloc*) 52 get_reloc_addend_noerror(const Reloc*) 64 typedef typename elfcpp::Rela<size, big_endian> Reloc; 69 get_reloc_addend(const Reloc* p) 73 get_reloc_addend_noerror(const Reloc* p)
|
H A D | sparc.cc | 3310 typedef Sparc_relocate_functions<size, big_endian> Reloc; in relocate() typedef 3399 Reloc::ua16(view, object, psymval, addend); in relocate() 3413 Reloc::ua32(view, object, psymval, addend); in relocate() 3422 Reloc::disp8(view, object, psymval, addend, address); in relocate() 3426 Reloc::disp16(view, object, psymval, addend, address); in relocate() 3430 Reloc::disp32(view, object, psymval, addend, address); in relocate() 3434 Reloc::disp64(view, object, psymval, addend, address); in relocate() 3439 Reloc::wdisp30(view, object, psymval, addend, address); in relocate() 3445 Reloc::wdisp22(view, object, psymval, addend, address); in relocate() 3449 Reloc::wdisp19(view, object, psymval, addend, address); in relocate() [all …]
|
/netbsd-src/external/gpl3/binutils/dist/gold/ |
H A D | reloc-types.h | 43 typedef typename elfcpp::Rel<size, big_endian> Reloc; 48 get_reloc_addend(const Reloc*) 52 get_reloc_addend_noerror(const Reloc*) 64 typedef typename elfcpp::Rela<size, big_endian> Reloc; 69 get_reloc_addend(const Reloc* p) 73 get_reloc_addend_noerror(const Reloc* p)
|
H A D | sparc.cc | 3310 typedef Sparc_relocate_functions<size, big_endian> Reloc; in relocate() typedef 3399 Reloc::ua16(view, object, psymval, addend); in relocate() 3413 Reloc::ua32(view, object, psymval, addend); in relocate() 3422 Reloc::disp8(view, object, psymval, addend, address); in relocate() 3426 Reloc::disp16(view, object, psymval, addend, address); in relocate() 3430 Reloc::disp32(view, object, psymval, addend, address); in relocate() 3434 Reloc::disp64(view, object, psymval, addend, address); in relocate() 3439 Reloc::wdisp30(view, object, psymval, addend, address); in relocate() 3445 Reloc::wdisp22(view, object, psymval, addend, address); in relocate() 3449 Reloc::wdisp19(view, object, psymval, addend, address); in relocate() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Sparc/ |
H A D | SparcTargetMachine.cpp | 57 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 58 return RM.getValueOr(Reloc::Static); in getEffectiveRelocModel() 72 getEffectiveSparcCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel() 84 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel() 92 const TargetOptions &Options, Optional<Reloc::Model> RM, in SparcTargetMachine() 190 Optional<Reloc::Model> RM, in SparcV8TargetMachine() 200 Optional<Reloc::Model> RM, in SparcV9TargetMachine() 210 Optional<Reloc::Model> RM, in SparcelTargetMachine()
|
H A D | SparcTargetMachine.h | 30 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 51 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 62 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, 72 Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM,
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86TargetMachine.cpp | 155 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 157 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 163 return Reloc::Static; in getEffectiveRelocModel() 170 return Reloc::PIC_; in getEffectiveRelocModel() 171 return Reloc::DynamicNoPIC; in getEffectiveRelocModel() 174 return Reloc::PIC_; in getEffectiveRelocModel() 175 return Reloc::Static; in getEffectiveRelocModel() 182 if (*RM == Reloc::DynamicNoPIC) { in getEffectiveRelocModel() 184 return Reloc::PIC_; in getEffectiveRelocModel() 186 return Reloc::Static; in getEffectiveRelocModel() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
H A D | JITTargetMachineBuilder.cpp | 78 case Reloc::Static: in print() 81 case Reloc::PIC_: in print() 84 case Reloc::DynamicNoPIC: in print() 87 case Reloc::ROPI: in print() 90 case Reloc::RWPI: in print() 93 case Reloc::ROPI_RWPI: in print()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ |
H A D | TargetMachineC.cpp | 104 LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, in LLVMCreateTargetMachine() argument 106 Optional<Reloc::Model> RM; in LLVMCreateTargetMachine() 107 switch (Reloc){ in LLVMCreateTargetMachine() 109 RM = Reloc::Static; in LLVMCreateTargetMachine() 112 RM = Reloc::PIC_; in LLVMCreateTargetMachine() 115 RM = Reloc::DynamicNoPIC; in LLVMCreateTargetMachine() 118 RM = Reloc::ROPI; in LLVMCreateTargetMachine() 121 RM = Reloc::RWPI; in LLVMCreateTargetMachine() 124 RM = Reloc::ROPI_RWPI; in LLVMCreateTargetMachine()
|
H A D | TargetMachine.cpp | 45 return getRelocationModel() == Reloc::PIC_; in isPositionIndependent() 70 Reloc::Model TargetMachine::getRelocationModel() const { return RM; } in getRelocationModel() 97 Reloc::Model RM = getRelocationModel(); in shouldAssumeDSOLocal() 147 if (RM == Reloc::Static) in shouldAssumeDSOLocal() 158 assert(RM != Reloc::DynamicNoPIC); in shouldAssumeDSOLocal() 172 Reloc::Model RM = getRelocationModel(); in getTLSModel() 173 bool IsSharedLibrary = RM == Reloc::PIC_ && !IsPIE; in getTLSModel()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMTargetMachine.cpp | 192 static Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 193 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 196 return TT.isOSBinFormatMachO() ? Reloc::PIC_ : Reloc::Static; in getEffectiveRelocModel() 198 if (*RM == Reloc::ROPI || *RM == Reloc::RWPI || *RM == Reloc::ROPI_RWPI) in getEffectiveRelocModel() 203 if (*RM == Reloc::DynamicNoPIC && !TT.isOSDarwin()) in getEffectiveRelocModel() 204 return Reloc::Static; in getEffectiveRelocModel() 214 Optional<Reloc::Model> RM, in ARMBaseTargetMachine() 314 Optional<Reloc::Model> RM, in ARMLETargetMachine() 322 Optional<Reloc::Model> RM, in ARMBETargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetMachine.cpp | 100 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 103 if (!RM.hasValue() || *RM == Reloc::DynamicNoPIC) in getEffectiveRelocModel() 104 return Reloc::Static; in getEffectiveRelocModel() 138 getEffectiveSystemZCodeModel(Optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSystemZCodeModel() 148 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel() 155 Optional<Reloc::Model> RM, in SystemZTargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/ |
H A D | MSP430TargetMachine.cpp | 29 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 31 return Reloc::Static; in getEffectiveRelocModel() 43 Optional<Reloc::Model> RM, in MSP430TargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/ |
H A D | LanaiTargetMachine.cpp | 50 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 51 return RM.getValueOr(Reloc::PIC_); in getEffectiveRelocModel() 57 Optional<Reloc::Model> RM, in LanaiTargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARC/ |
H A D | ARCTargetMachine.cpp | 23 static Reloc::Model getRelocModel(Optional<Reloc::Model> RM) { in getRelocModel() 24 return RM.getValueOr(Reloc::Static); in getRelocModel() 31 Optional<Reloc::Model> RM, in ARCTargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/ |
H A D | DwarfLinkerForBinary.cpp | 506 for (const object::RelocationRef &Reloc : Section.relocations()) { in findValidRelocsMachO() local 512 object::DataRefImpl RelocDataRef = Reloc.getRawDataRefImpl(); in findValidRelocsMachO() 525 uint64_t Offset64 = Reloc.getOffset(); in findValidRelocsMachO() 549 auto Sym = Reloc.getSymbol(); in findValidRelocsMachO() 623 auto CurReloc = partition_point(Relocs, [StartPos](const ValidReloc &Reloc) { in getRelocations() argument 624 return Reloc.Offset < StartPos; in getRelocations() 636 void DwarfLinkerForBinary::AddressManager::printReloc(const ValidReloc &Reloc) { in printReloc() argument 637 const auto &Mapping = Reloc.Mapping->getValue(); in printReloc() 642 outs() << "Found valid debug map entry: " << Reloc.Mapping->getKey() << "\t" in printReloc() 648 const ValidReloc &Reloc, CompileUnit::DIEInfo &Info) { in fillDieInfo() argument [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/XCore/ |
H A D | XCoreTargetMachine.cpp | 28 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 29 return RM.getValueOr(Reloc::Static); in getEffectiveRelocModel() 47 Optional<Reloc::Model> RM, in XCoreTargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/ |
H A D | AVRTargetMachine.cpp | 39 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 40 return RM.getValueOr(Reloc::Static); in getEffectiveRelocModel() 46 Optional<Reloc::Model> RM, in AVRTargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/ |
H A D | VETargetMachine.cpp | 63 static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 64 return RM.getValueOr(Reloc::Static); in getEffectiveRelocModel() 82 Optional<Reloc::Model> RM, in VETargetMachine()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/ |
H A D | WasmObjectFile.cpp | 857 wasm::WasmRelocation Reloc = {}; in parseRelocSection() local 859 Reloc.Type = type; in parseRelocSection() 860 Reloc.Offset = readVaruint32(Ctx); in parseRelocSection() 861 if (Reloc.Offset < PreviousOffset) in parseRelocSection() 864 PreviousOffset = Reloc.Offset; in parseRelocSection() 865 Reloc.Index = readVaruint32(Ctx); in parseRelocSection() 874 if (!isValidFunctionSymbol(Reloc.Index)) in parseRelocSection() 879 if (!isValidTableSymbol(Reloc.Index)) in parseRelocSection() 884 if (Reloc.Index >= Signatures.size()) in parseRelocSection() 891 if (!isValidGlobalSymbol(Reloc.Index) && in parseRelocSection() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonAsmBackend.cpp | 426 uint32_t Reloc; in applyFixup() local 450 Reloc = (((Value >> 2) & 0x1f) << 8) | // Value 6-2 = Target 12-8 in applyFixup() 460 Reloc = (((Value >> 7) & 0x3) << 20) | // Value 8-7 = Target 21-20 in applyFixup() 472 Reloc = (((Value >> 12) & 0x1) << 21) | // Value 12 = Target 21 in applyFixup() 483 Reloc = (((Value >> 13) & 0x3) << 22) | // Value 14-13 = Target 23-22 in applyFixup() 495 Reloc = (((Value >> 13) & 0x1ff) << 16) | // Value 21-13 = Target 24-16 in applyFixup() 501 Reloc = (((Value >> 14) & 0xfff) << 16) | // Value 25-14 = Target 27-16 in applyFixup() 510 Reloc = Value; in applyFixup() 522 dbgs().write_hex(OldData) << ": Reloc=0x"; dbgs().write_hex(Reloc);); in applyFixup() 529 InstAddr[i] |= uint8_t(Reloc >> (i * 8)) & 0xff; // Apply new reloc in applyFixup()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldCOFF.cpp | 87 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()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
H A D | M68kTargetMachine.cpp | 62 Reloc::Model getEffectiveRelocModel(const Triple &TT, in getEffectiveRelocModel() 63 Optional<Reloc::Model> RM) { in getEffectiveRelocModel() 66 return Reloc::Static; in getEffectiveRelocModel() 88 Optional<Reloc::Model> RM, in M68kTargetMachine()
|