Home
last modified time | relevance | path

Searched refs:Section (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/NextBSD/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
HDRuntimeDyldELF.cpp224 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section, in resolveX86_64Relocation() argument
233 support::ulittle64_t::ref(Section.Address + Offset) = Value + Addend; in resolveX86_64Relocation()
235 << format("%p\n", Section.Address + Offset)); in resolveX86_64Relocation()
245 support::ulittle32_t::ref(Section.Address + Offset) = TruncatedAddr; in resolveX86_64Relocation()
247 << format("%p\n", Section.Address + Offset)); in resolveX86_64Relocation()
251 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
255 support::ulittle32_t::ref(Section.Address + Offset) = TruncOffset; in resolveX86_64Relocation()
259 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
261 support::ulittle64_t::ref(Section.Address + Offset) = RealOffset; in resolveX86_64Relocation()
267 void RuntimeDyldELF::resolveX86Relocation(const SectionEntry &Section, in resolveX86Relocation() argument
[all …]
HDRuntimeDyld.cpp254 static bool isRequiredForExecution(const SectionRef Section) { in isRequiredForExecution() argument
255 const ObjectFile *Obj = Section.getObject(); in isRequiredForExecution()
257 return ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC; in isRequiredForExecution()
259 const coff_section *CoffSection = COFFObj->getCOFFSection(Section); in isRequiredForExecution()
276 static bool isReadOnlyData(const SectionRef Section) { in isReadOnlyData() argument
277 const ObjectFile *Obj = Section.getObject(); in isReadOnlyData()
279 return !(ELFSectionRef(Section).getFlags() & in isReadOnlyData()
282 return ((COFFObj->getCOFFSection(Section)->Characteristics & in isReadOnlyData()
294 static bool isZeroInit(const SectionRef Section) { in isZeroInit() argument
295 const ObjectFile *Obj = Section.getObject(); in isZeroInit()
[all …]
HDRuntimeDyldELF.h26 void resolveRelocation(const SectionEntry &Section, uint64_t Offset,
30 void resolveX86_64Relocation(const SectionEntry &Section, uint64_t Offset,
34 void resolveX86Relocation(const SectionEntry &Section, uint64_t Offset,
37 void resolveAArch64Relocation(const SectionEntry &Section, uint64_t Offset,
40 void resolveARMRelocation(const SectionEntry &Section, uint64_t Offset,
43 void resolveMIPSRelocation(const SectionEntry &Section, uint64_t Offset,
46 void resolvePPC64Relocation(const SectionEntry &Section, uint64_t Offset,
49 void resolveSystemZRelocation(const SectionEntry &Section, uint64_t Offset,
52 void resolveMIPS64Relocation(const SectionEntry &Section, uint64_t Offset,
56 int64_t evaluateMIPS64Relocation(const SectionEntry &Section,
/NextBSD/contrib/llvm/include/llvm/Object/
HDELFYAML.h72 StringRef Section; member
87 struct Section { struct
103 Section(SectionKind Kind) : Kind(Kind) {} in Section() argument
104 virtual ~Section();
106 struct RawContentSection : Section {
109 RawContentSection() : Section(SectionKind::RawContent) {} in RawContentSection()
110 static bool classof(const Section *S) { in classof()
115 struct NoBitsSection : Section {
117 NoBitsSection() : Section(SectionKind::NoBits) {} in NoBitsSection()
118 static bool classof(const Section *S) { in classof()
[all …]
/NextBSD/contrib/llvm/tools/lli/
HDRemoteMemoryManager.cpp99 Allocation &Section = UnmappedSections[i]; in notifyObjectLoaded() local
100 if (Section.IsCode) { in notifyObjectLoaded()
101 unsigned Size = Section.MB.size(); in notifyObjectLoaded()
102 unsigned Align = Section.Alignment; in notifyObjectLoaded()
109 Offsets.push_back(std::pair<Allocation,uint64_t>(Section, CurOffset)); in notifyObjectLoaded()
116 Allocation &Section = UnmappedSections[i]; in notifyObjectLoaded() local
117 if (!Section.IsCode) { in notifyObjectLoaded()
118 unsigned Size = Section.MB.size(); in notifyObjectLoaded()
119 unsigned Align = Section.Alignment; in notifyObjectLoaded()
126 Offsets.push_back(std::pair<Allocation,uint64_t>(Section, CurOffset)); in notifyObjectLoaded()
[all …]
/NextBSD/contrib/llvm/lib/MC/
HDConstantPools.cpp51 ConstantPool *AssemblerConstantPools::getConstantPool(MCSection *Section) { in getConstantPool() argument
52 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool()
60 AssemblerConstantPools::getOrCreateConstantPool(MCSection *Section) { in getOrCreateConstantPool() argument
61 return ConstantPools[Section]; in getOrCreateConstantPool()
64 static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, in emitConstantPool() argument
67 Streamer.SwitchSection(Section); in emitConstantPool()
77 MCSection *Section = CPI->first; in emitAll() local
80 emitConstantPool(Streamer, Section, CP); in emitAll()
85 MCSection *Section = Streamer.getCurrentSection().first; in emitForCurrentSection() local
86 if (ConstantPool *CP = getConstantPool(Section)) { in emitForCurrentSection()
[all …]
HDMCContext.cpp125 MCSymbolELF *MCContext::getOrCreateSectionSymbol(const MCSectionELF &Section) { in getOrCreateSectionSymbol() argument
126 MCSymbolELF *&Sym = SectionSymbols[&Section]; in getOrCreateSectionSymbol()
130 StringRef Name = Section.getSectionName(); in getOrCreateSectionSymbol()
272 MCSectionMachO *MCContext::getMachOSection(StringRef Segment, StringRef Section, in getMachOSection() argument
285 Name += Section; in getMachOSection()
297 return Entry = new (*this) MCSectionMachO(Segment, Section, TypeAndAttributes, in getMachOSection()
301 void MCContext::renameELFSection(MCSectionELF *Section, StringRef Name) { in renameELFSection() argument
303 if (const MCSymbol *Group = Section->getGroup()) in renameELFSection()
306 unsigned UniqueID = Section->getUniqueID(); in renameELFSection()
308 ELFSectionKey{Section->getSectionName(), GroupName, UniqueID}); in renameELFSection()
[all …]
HDMCMachOStreamer.cpp97 void EmitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
99 void EmitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, uint64_t Size,
148 void MCMachOStreamer::ChangeSection(MCSection *Section, in ChangeSection() argument
151 bool Created = MCObjectStreamer::changeSectionImpl(Section, Subsection); in ChangeSection()
152 const MCSectionMachO &MSec = *cast<MCSectionMachO>(Section); in ChangeSection()
161 if (LabelSections && !HasSectionLabel[Section] && in ChangeSection()
162 !Section->getBeginSymbol()) { in ChangeSection()
164 Section->setBeginSymbol(Label); in ChangeSection()
165 HasSectionLabel[Section] = true; in ChangeSection()
288 ISD.Section = getCurrentSectionOnly(); in EmitSymbolAttribute()
[all …]
HDMCELFStreamer.cpp114 const MCSectionELF &Section = in EmitLabel() local
116 if (Section.getFlags() & ELF::SHF_TLS) in EmitLabel()
140 MCSection *Section) { in setSectionAlignmentForBundling() argument
141 if (Section && Assembler.isBundlingEnabled() && Section->hasInstructions() && in setSectionAlignmentForBundling()
142 Section->getAlignment() < Assembler.getBundleAlignSize()) in setSectionAlignmentForBundling()
143 Section->setAlignment(Assembler.getBundleAlignSize()); in setSectionAlignmentForBundling()
146 void MCELFStreamer::ChangeSection(MCSection *Section, in ChangeSection() argument
155 auto *SectionELF = static_cast<const MCSectionELF *>(Section); in ChangeSection()
160 this->MCObjectStreamer::ChangeSection(Section, Subsection); in ChangeSection()
162 auto *Begin = cast_or_null<MCSymbolELF>(Section->getBeginSymbol()); in ChangeSection()
[all …]
HDWinCOFFObjectWriter.cpp71 COFFSection *Section; member in __anon23f9e83e0111::COFFSymbol
205 : Name(name.begin(), name.end()), Other(nullptr), Section(nullptr), in COFFSymbol()
221 if (!Section) in should_keep()
226 assert(Section->Number != -1 && "Sections with relocations must be real!"); in should_keep()
235 if (Section->Number == -1) in should_keep()
239 if (Section->Symbol == this) in should_keep()
306 if (COMDATSymbol->Section) in defineSection()
308 COMDATSymbol->Section = coff_section; in defineSection()
313 coff_symbol->Section = coff_section; in defineSection()
451 if (coff_symbol->Section && coff_symbol->Section != Sec) in DefineSymbol()
[all …]
HDMachObjectWriter.cpp200 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec); in writeSection() local
203 if (Section.isVirtualSection()) { in writeSection()
214 writeBytes(Section.getSectionName(), 16); in writeSection()
215 writeBytes(Section.getSegmentName(), 16); in writeSection()
225 unsigned Flags = Section.getTypeAndAttributes(); in writeSection()
226 if (Section.hasInstructions()) in writeSection()
229 assert(isPowerOf2_32(Section.getAlignment()) && "Invalid alignment!"); in writeSection()
230 write32(Log2_32(Section.getAlignment())); in writeSection()
235 write32(Section.getStubSize()); // reserved2 in writeSection()
456 const MCSectionMachO &Section = cast<MCSectionMachO>(*it->Section); in bindIndirectSymbols() local
[all …]
HDMCSectionMachO.cpp72 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, in MCSectionMachO() argument
77 assert(Segment.size() <= 16 && Section.size() <= 16 && in MCSectionMachO()
85 if (i < Section.size()) in MCSectionMachO()
86 SectionName[i] = Section[i]; in MCSectionMachO()
173 StringRef &Section, // Out. in ParseSectionSpecifier() argument
186 Section = GetEmptyOrTrim(1); in ParseSectionSpecifier()
197 if (Section.empty()) in ParseSectionSpecifier()
201 if (Section.size() > 16) in ParseSectionSpecifier()
HDELFObjectWriter.cpp230 const MCSectionELF &Section);
810 const MCSectionELF &Section = in computeSymbolTable() local
812 MSD.SectionIndex = SectionIndexMap.lookup(&Section); in computeSymbolTable()
1007 MCSectionELF &Section = static_cast<MCSectionELF &>(Sec); in writeSectionData() local
1008 StringRef SectionName = Section.getSectionName(); in writeSectionData()
1015 Asm.writeSectionData(&Section, Layout); in writeSectionData()
1020 const MCSection::FragmentListType &Fragments = Section.getFragmentList(); in writeSectionData()
1029 Asm.writeSectionData(&Section, Layout); in writeSectionData()
1034 Asm.writeSectionData(&Section, Layout); in writeSectionData()
1037 Asm.getContext().renameELFSection(&Section, in writeSectionData()
[all …]
/NextBSD/contrib/llvm/lib/Object/
HDELFYAML.cpp20 ELFYAML::Section::~Section() {} in ~Section()
598 IO.mapOptional("Section", Symbol.Section, StringRef()); in mapping()
614 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument
615 IO.mapOptional("Name", Section.Name, StringRef()); in commonSectionMapping()
616 IO.mapRequired("Type", Section.Type); in commonSectionMapping()
617 IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); in commonSectionMapping()
618 IO.mapOptional("Address", Section.Address, Hex64(0)); in commonSectionMapping()
619 IO.mapOptional("Link", Section.Link, StringRef()); in commonSectionMapping()
620 IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); in commonSectionMapping()
621 IO.mapOptional("Info", Section.Info, StringRef()); in commonSectionMapping()
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/Core/
HDSection.cpp22 Section::Section (const ModuleSP &module_sp, in Section() function in Section
56 Section::Section (const lldb::SectionSP &parent_section_sp, in Section() function in Section
93 Section::~Section() in ~Section()
99 Section::GetFileAddress () const in GetFileAddress()
114 Section::SetFileAddress (lldb::addr_t file_addr) in SetFileAddress()
132 Section::GetOffset () const in GetOffset()
144 Section::GetLoadBaseAddress (Target *target) const in GetLoadBaseAddress()
156 …load_base_addr = target->GetSectionLoadList().GetSectionLoadAddress (const_cast<Section *>(this)->… in GetLoadBaseAddress()
162 Section::ResolveContainedAddress (addr_t offset, Address &so_addr) const in ResolveContainedAddress()
169 Section* child_section = m_children.GetSectionAtIndex (i).get(); in ResolveContainedAddress()
[all …]
/NextBSD/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
HDRuntimeDyldMachOARM.h37 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() local
38 uint8_t *LocalAddress = Section.Address + RE.Offset; in decodeAddend()
94 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
95 uint8_t *LocalAddress = Section.Address + RE.Offset; in resolveRelocation()
100 uint64_t FinalAddress = Section.LoadAddress + RE.Offset; in resolveRelocation()
161 const SectionRef &Section) { in finalizeSection() argument
163 Section.getName(Name); in finalizeSection()
167 Section, SectionID); in finalizeSection()
177 SectionEntry &Section = Sections[RE.SectionID]; in processBranchRelocation() local
181 Addr = Section.Address + i->second; in processBranchRelocation()
[all …]
HDRuntimeDyldMachOX86_64.h71 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
72 uint8_t *LocalAddress = Section.Address + RE.Offset; in resolveRelocation()
79 uint64_t FinalAddress = Section.LoadAddress + RE.Offset; in resolveRelocation()
103 const SectionRef &Section) {} in finalizeSection() argument
108 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation() local
115 Addr = Section.Address + i->second; in processGOTRelocation()
117 Stubs[Value] = Section.StubOffset; in processGOTRelocation()
118 uint8_t *GOTEntry = Section.Address + Section.StubOffset; in processGOTRelocation()
119 RelocationEntry GOTRE(RE.SectionID, Section.StubOffset, in processGOTRelocation()
126 Section.StubOffset += 8; in processGOTRelocation()
HDRuntimeDyldMachOI386.h86 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
87 uint8_t *LocalAddress = Section.Address + RE.Offset; in resolveRelocation()
90 uint64_t FinalAddress = Section.LoadAddress + RE.Offset; in resolveRelocation()
116 const SectionRef &Section) { in finalizeSection() argument
118 Section.getName(Name); in finalizeSection()
121 populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
124 Section, SectionID); in finalizeSection()
137 SectionEntry &Section = Sections[SectionID]; in processSECTDIFFRelocation() local
142 uint8_t *LocalAddress = Section.Address + Offset; in processSECTDIFFRelocation()
195 SectionEntry &Section = Sections[SectionID]; in processI386ScatteredVANILLA() local
[all …]
/NextBSD/contrib/llvm/tools/llvm-readobj/
HDWin64EHDumper.cpp116 const coff_section *Section, uint64_t Offset, in formatSymbol() argument
122 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol()
138 const coff_section *Section, in resolveRelocation() argument
144 Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) in resolveRelocation()
163 const coff_section *Section, in printRuntimeFunctionEntry() argument
167 formatSymbol(Ctx, Section, Offset + 0, RF.StartAddress)); in printRuntimeFunctionEntry()
169 formatSymbol(Ctx, Section, Offset + 4, RF.EndAddress)); in printRuntimeFunctionEntry()
171 formatSymbol(Ctx, Section, Offset + 8, RF.UnwindInfoOffset)); in printRuntimeFunctionEntry()
234 void Dumper::printUnwindInfo(const Context &Ctx, const coff_section *Section, in printUnwindInfo() argument
268 formatSymbol(Ctx, Section, LSDAOffset, in printUnwindInfo()
[all …]
HDMachODumper.cpp271 MachOSection &Section) { in getSection() argument
274 Section.Address = Sect.addr; in getSection()
275 Section.Size = Sect.size; in getSection()
276 Section.Offset = Sect.offset; in getSection()
277 Section.Alignment = Sect.align; in getSection()
278 Section.RelocationTableOffset = Sect.reloff; in getSection()
279 Section.NumRelocationTableEntries = Sect.nreloc; in getSection()
280 Section.Flags = Sect.flags; in getSection()
281 Section.Reserved1 = Sect.reserved1; in getSection()
282 Section.Reserved2 = Sect.reserved2; in getSection()
[all …]
HDCOFFDumper.cpp66 void printRelocation(const SectionRef &Section, const RelocationRef &Reloc);
74 void printCodeViewDebugInfo(const SectionRef &Section);
77 const SectionRef &Section,
82 std::error_code resolveSymbol(const coff_section *Section, uint64_t Offset,
84 std::error_code resolveSymbolName(const coff_section *Section,
120 std::error_code COFFDumper::resolveSymbol(const coff_section *Section, in resolveSymbol() argument
123 const auto &Relocations = RelocMap[Section]; in resolveSymbol()
137 std::error_code COFFDumper::resolveSymbolName(const coff_section *Section, in resolveSymbolName() argument
141 if (std::error_code EC = resolveSymbol(Section, Offset, Symbol)) in resolveSymbolName()
348 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations() local
[all …]
HDARMWinEHPrinter.cpp188 for (const auto &Section : COFF.sections()) { in getSectionContaining() local
189 uint64_t Address = Section.getAddress(); in getSectionContaining()
190 uint64_t Size = Section.getSize(); in getSectionContaining()
193 return Section; in getSectionContaining()
214 const SectionRef &Section, in getRelocatedSymbol() argument
216 for (const auto &Relocation : Section.relocations()) { in getRelocatedSymbol()
510 const SectionRef &Section, in dumpXDataRecord() argument
513 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents)) in dumpXDataRecord()
516 uint64_t SectionVA = Section.getAddress(); in dumpXDataRecord()
566 getRelocatedSymbol(COFF, Section, HandlerOffset * sizeof(uint32_t)); in dumpXDataRecord()
[all …]
/NextBSD/contrib/llvm/include/llvm/MC/
HDMCContext.h271 MCSymbolELF *getOrCreateSectionSymbol(const MCSectionELF &Section);
299 MCSectionMachO *getMachOSection(StringRef Segment, StringRef Section,
304 MCSectionMachO *getMachOSection(StringRef Segment, StringRef Section,
307 return getMachOSection(Segment, Section, TypeAndAttributes, 0, K,
311 MCSectionELF *getELFSection(StringRef Section, unsigned Type, in getELFSection() argument
313 return getELFSection(Section, Type, Flags, nullptr); in getELFSection()
316 MCSectionELF *getELFSection(StringRef Section, unsigned Type, in getELFSection() argument
318 return getELFSection(Section, Type, Flags, 0, "", BeginSymName); in getELFSection()
321 MCSectionELF *getELFSection(StringRef Section, unsigned Type, in getELFSection() argument
324 return getELFSection(Section, Type, Flags, EntrySize, Group, nullptr); in getELFSection()
[all …]
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDSection.h47 FindSectionIndex (const Section* sect);
105 class Section :
106 public std::enable_shared_from_this<Section>,
113 Section (const lldb::ModuleSP &module_sp,
127Section (const lldb::SectionSP &parent_section_sp, // NULL for top level sections, non-NULL for…
141 ~Section ();
144 Compare (const Section& a, const Section& b);
244 IsDescendant (const Section *section);
331 DISALLOW_COPY_AND_ASSIGN (Section);
/NextBSD/contrib/llvm/tools/llvm-objdump/
HDllvm-objdump.cpp474 for (const SectionRef &Section : O->sections()) { in printRelocationTargetName() local
478 uint64_t Addr = Section.getAddress(); in printRelocationTargetName()
481 if ((ec = Section.getName(Name))) in printRelocationTargetName()
809 for (const SectionRef &Section : Obj->sections()) { in DisassembleObject() local
810 section_iterator Sec2 = Section.getRelocatedSection(); in DisassembleObject()
812 SectionRelocMap[*Sec2].push_back(Section); in DisassembleObject()
839 for (const SectionRef &Section : Obj->sections()) { in DisassembleObject() local
840 if (!Section.isText() || Section.isVirtual()) in DisassembleObject()
843 uint64_t SectionAddr = Section.getAddress(); in DisassembleObject()
844 uint64_t SectSize = Section.getSize(); in DisassembleObject()
[all …]

12345678910>>...12