Home
last modified time | relevance | path

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

1234567891011

/trueos/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
HDRuntimeDyldELF.cpp220 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section, in resolveX86_64Relocation() argument
231 uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset); in resolveX86_64Relocation()
244 uint32_t *Target = reinterpret_cast<uint32_t*>(Section.Address + Offset); in resolveX86_64Relocation()
254 uint32_t *Target = reinterpret_cast<uint32_t*>(Section.Address + Offset); in resolveX86_64Relocation()
255 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
268 uint32_t *Placeholder = reinterpret_cast<uint32_t*>(Section.ObjAddress in resolveX86_64Relocation()
270 uint32_t *Target = reinterpret_cast<uint32_t*>(Section.Address + Offset); in resolveX86_64Relocation()
271 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
281 uint64_t *Placeholder = reinterpret_cast<uint64_t*>(Section.ObjAddress in resolveX86_64Relocation()
283 uint64_t *Target = reinterpret_cast<uint64_t*>(Section.Address + Offset); in resolveX86_64Relocation()
[all …]
HDRuntimeDyldMachO.cpp97 const SectionRef &Section = i->first; in finalizeLoad() local
99 Section.getName(Name); in finalizeLoad()
134 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
135 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
139 void RuntimeDyldMachO::resolveRelocation(const SectionEntry &Section, in resolveRelocation() argument
146 uint8_t *LocalAddress = Section.Address + Offset; in resolveRelocation()
147 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveRelocation()
346 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
353 uint8_t *LocalAddress = Section.Address + Offset; in processRelocationRef()
394 Addr = Section.Address + i->second; in processRelocationRef()
[all …]
HDRuntimeDyldELF.h35 void resolveRelocation(const SectionEntry &Section,
42 void resolveX86_64Relocation(const SectionEntry &Section,
49 void resolveX86Relocation(const SectionEntry &Section,
55 void resolveAArch64Relocation(const SectionEntry &Section,
61 void resolveARMRelocation(const SectionEntry &Section,
67 void resolveMIPSRelocation(const SectionEntry &Section,
73 void resolvePPC64Relocation(const SectionEntry &Section,
79 void resolveSystemZRelocation(const SectionEntry &Section,
HDRuntimeDyld.cpp237 const SectionRef &Section, in emitSection() argument
252 if (!(RelSecI == Section)) in emitSection()
264 Check(Section.getContents(data)); in emitSection()
265 Check(Section.getAlignment(Alignment64)); in emitSection()
275 Check(Section.isRequiredForExecution(IsRequired)); in emitSection()
276 Check(Section.isVirtual(IsVirtual)); in emitSection()
277 Check(Section.isZeroInit(IsZeroInit)); in emitSection()
278 Check(Section.isReadOnlyData(IsReadOnly)); in emitSection()
279 Check(Section.getSize(DataSize)); in emitSection()
280 Check(Section.getName(Name)); in emitSection()
[all …]
/trueos/contrib/llvm/tools/llvm-readobj/
HDMachODumper.cpp167 MachOSection &Section) { in getSection() argument
170 Section.Address = Sect.addr; in getSection()
171 Section.Size = Sect.size; in getSection()
172 Section.Offset = Sect.offset; in getSection()
173 Section.Alignment = Sect.align; in getSection()
174 Section.RelocationTableOffset = Sect.reloff; in getSection()
175 Section.NumRelocationTableEntries = Sect.nreloc; in getSection()
176 Section.Flags = Sect.flags; in getSection()
177 Section.Reserved1 = Sect.reserved1; in getSection()
178 Section.Reserved2 = Sect.reserved2; in getSection()
[all …]
HDCOFFDumper.cpp90 const coff_section **Section,
507 const coff_section *Section; in getSectionContents() local
511 if (error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents()
513 if (error_code EC = Obj->getSectionContents(Section, Contents)) in getSectionContents()
527 const coff_section *Section; in getSection() local
529 if (error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSection()
533 *SectionPtr = Section; in getSection()
548 const coff_section *Section = Obj->getCOFFSection(SecI); in cacheRelocations() local
556 RelocMap[Section].push_back(*RelI); in cacheRelocations()
560 std::sort(RelocMap[Section].begin(), RelocMap[Section].end(), in cacheRelocations()
[all …]
/trueos/contrib/llvm/tools/lli/
HDRemoteMemoryManager.cpp98 Allocation &Section = UnmappedSections[i]; in notifyObjectLoaded() local
99 if (Section.IsCode) { in notifyObjectLoaded()
100 unsigned Size = Section.MB.size(); in notifyObjectLoaded()
101 unsigned Align = Section.Alignment; in notifyObjectLoaded()
108 Offsets.push_back(std::pair<Allocation,uint64_t>(Section, CurOffset)); in notifyObjectLoaded()
115 Allocation &Section = UnmappedSections[i]; in notifyObjectLoaded() local
116 if (!Section.IsCode) { in notifyObjectLoaded()
117 unsigned Size = Section.MB.size(); in notifyObjectLoaded()
118 unsigned Align = Section.Alignment; in notifyObjectLoaded()
125 Offsets.push_back(std::pair<Allocation,uint64_t>(Section, CurOffset)); in notifyObjectLoaded()
[all …]
/trueos/contrib/llvm/lib/MC/
HDELFObjectWriter.cpp60 const MCSectionELF &Section);
335 const MCSectionELF &Section);
607 const MCSectionELF &Section = in WriteSymbolTable() local
609 if (Section.getType() == ELF::SHT_RELA || in WriteSymbolTable()
610 Section.getType() == ELF::SHT_REL || in WriteSymbolTable()
611 Section.getType() == ELF::SHT_STRTAB || in WriteSymbolTable()
612 Section.getType() == ELF::SHT_SYMTAB || in WriteSymbolTable()
613 Section.getType() == ELF::SHT_SYMTAB_SHNDX) in WriteSymbolTable()
616 ELF::STV_DEFAULT, SectionIndexMap.lookup(&Section), in WriteSymbolTable()
663 const MCSectionELF &Section = in SymbolToReloc() local
[all …]
HDMCSectionMachO.cpp75 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, in MCSectionMachO() argument
78 assert(Segment.size() <= 16 && Section.size() <= 16 && in MCSectionMachO()
86 if (i < Section.size()) in MCSectionMachO()
87 SectionName[i] = Section[i]; in MCSectionMachO()
182 StringRef &Section, // Out. in ParseSectionSpecifier() argument
208 Section = Comma.first; in ParseSectionSpecifier()
209 StripSpaces(Section); in ParseSectionSpecifier()
212 if (Section.empty() || Section.size() > 16) in ParseSectionSpecifier()
HDMCContext.cpp214 getMachOSection(StringRef Segment, StringRef Section, in getMachOSection() argument
231 Name += Section; in getMachOSection()
238 return Entry = new (*this) MCSectionMachO(Segment, Section, TypeAndAttributes, in getMachOSection()
243 getELFSection(StringRef Section, unsigned Type, unsigned Flags, in getELFSection() argument
245 return getELFSection(Section, Type, Flags, Kind, 0, ""); in getELFSection()
249 getELFSection(StringRef Section, unsigned Type, unsigned Flags, in getELFSection() argument
257 std::make_pair(SectionGroupPair(Section, Group), (MCSectionELF *)0)); in getELFSection()
283 MCContext::getCOFFSection(StringRef Section, unsigned Characteristics, in getCOFFSection() argument
292 SectionGroupPair P(Section, COMDATSymName); in getCOFFSection()
312 MCContext::getCOFFSection(StringRef Section, unsigned Characteristics, in getCOFFSection() argument
[all …]
HDWinCOFFStreamer.cpp70 virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
72 virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
97 void SetSection(StringRef Section, in SetSection() argument
100 SwitchSection(getContext().getCOFFSection(Section, Characteristics, Kind)); in SetSection()
153 const MCSection *Section = MCStreamer::getContext().getCOFFSection( in AddCommonSymbol() local
157 MCSectionData &SectionData = getAssembler().getOrCreateSectionData(*Section); in AddCommonSymbol()
164 AssignSection(Symbol, Section); in AddCommonSymbol()
296 void WinCOFFStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol, in EmitZerofill() argument
301 void WinCOFFStreamer::EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol, in EmitTBSSSymbol() argument
HDMCELFStreamer.cpp38 inline void MCELFStreamer::SetSection(StringRef Section, unsigned Type, in SetSection() argument
40 SwitchSection(getContext().getELFSection(Section, Type, Flags, Kind)); in SetSection()
88 const MCSectionELF &Section = in EmitLabel() local
91 if (Section.getFlags() & ELF::SHF_TLS) in EmitLabel()
116 void MCELFStreamer::ChangeSection(const MCSection *Section, in ChangeSection() argument
121 const MCSymbol *Grp = static_cast<const MCSectionELF *>(Section)->getGroup(); in ChangeSection()
124 this->MCObjectStreamer::ChangeSection(Section, Subsection); in ChangeSection()
274 const MCSection *Section = getAssembler().getContext().getELFSection(".bss", in EmitCommonSymbol() local
280 AssignSection(Symbol, Section); in EmitCommonSymbol()
552 const MCSection &Section = Symbol.getSection(); in Flush() local
[all …]
HDMCMachOStreamer.cpp76 virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
78 virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
344 void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol, in EmitZerofill() argument
346 MCSectionData &SectData = getAssembler().getOrCreateSectionData(*Section); in EmitZerofill()
353 assert(Section->isVirtualSection() && "Section does not have zerofill type!"); in EmitZerofill()
366 AssignSection(Symbol, Section); in EmitZerofill()
375 void MCMachOStreamer::EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol, in EmitTBSSSymbol() argument
377 EmitZerofill(Section, Symbol, Size, ByteAlignment); in EmitTBSSSymbol()
HDMCSymbol.cpp60 const MCSection *Section = Value->FindAssociatedSection(); in setVariableValue() local
61 if (Section) in setVariableValue()
62 setSection(*Section); in setVariableValue()
HDMachObjectWriter.cpp218 const MCSectionMachO &Section = cast<MCSectionMachO>(SD.getSection()); in WriteSection() local
219 WriteBytes(Section.getSectionName(), 16); in WriteSection()
220 WriteBytes(Section.getSegmentName(), 16); in WriteSection()
230 unsigned Flags = Section.getTypeAndAttributes(); in WriteSection()
240 Write32(Section.getStubSize()); // reserved2 in WriteSection()
437 const MCSectionMachO &Section = in BindIndirectSymbols() local
440 if (Section.getType() != MCSectionMachO::S_NON_LAZY_SYMBOL_POINTERS && in BindIndirectSymbols()
441 Section.getType() != MCSectionMachO::S_LAZY_SYMBOL_POINTERS && in BindIndirectSymbols()
442 Section.getType() != MCSectionMachO::S_SYMBOL_STUBS) { in BindIndirectSymbols()
453 const MCSectionMachO &Section = in BindIndirectSymbols() local
[all …]
/trueos/contrib/llvm/lib/DebugInfo/
HDDWARFContext.h56 struct Section { struct
140 virtual const Section &getInfoSection() = 0;
141 virtual const std::map<object::SectionRef, Section> &getTypesSections() = 0;
143 virtual const Section &getLocSection() = 0;
146 virtual const Section &getLineSection() = 0;
155 virtual const Section &getInfoDWOSection() = 0;
181 Section InfoSection;
182 std::map<object::SectionRef, Section> TypesSections;
184 Section LocSection;
187 Section LineSection;
[all …]
/trueos/contrib/llvm/tools/lldb/source/Core/
HDSection.cpp19 Section::Section (const ModuleSP &module_sp, in Section() function in Section
49 Section::Section (const lldb::SectionSP &parent_section_sp, in Section() function in Section
82 Section::~Section() in ~Section()
88 Section::GetFileAddress () const in GetFileAddress()
103 Section::SetFileAddress (lldb::addr_t file_addr) in SetFileAddress()
121 Section::GetOffset () const in GetOffset()
133 Section::GetLoadBaseAddress (Target *target) const in GetLoadBaseAddress()
145 …load_base_addr = target->GetSectionLoadList().GetSectionLoadAddress (const_cast<Section *>(this)->… in GetLoadBaseAddress()
151 Section::ResolveContainedAddress (addr_t offset, Address &so_addr) const in ResolveContainedAddress()
158 Section* child_section = m_children.GetSectionAtIndex (i).get(); in ResolveContainedAddress()
[all …]
/trueos/contrib/llvm/include/llvm/MC/
HDMCSymbol.h46 const MCSection *Section; variable
63 : Name(name), Section(0), Value(0), in MCSymbol()
90 return Section != 0; in isDefined()
106 return Section == AbsolutePseudoSection; in isAbsolute()
113 return *Section; in getSection()
117 void setSection(const MCSection &S) { Section = &S; } in setSection()
121 Section = 0; in setUndefined()
125 void setAbsolute() { Section = AbsolutePseudoSection; } in setAbsolute()
HDMCStreamer.h284 void SwitchSection(const MCSection *Section, const MCExpr *Subsection = 0) {
285 assert(Section && "Cannot switch to a null section!");
288 if (MCSectionSubPair(Section, Subsection) != curSection) {
289 SectionStack.back().first = MCSectionSubPair(Section, Subsection);
290 ChangeSection(Section, Subsection);
297 void SwitchSectionNoChange(const MCSection *Section,
299 assert(Section && "Cannot switch to a null section!");
302 if (MCSectionSubPair(Section, Subsection) != curSection)
303 SectionStack.back().first = MCSectionSubPair(Section, Subsection);
327 void AssignSection(MCSymbol *Symbol, const MCSection *Section);
[all …]
HDMCContext.h239 StringRef Section,
244 StringRef Section, in getMachOSection() argument
247 return getMachOSection(Segment, Section, TypeAndAttributes, 0, K); in getMachOSection()
250 const MCSectionELF *getELFSection(StringRef Section, unsigned Type,
253 const MCSectionELF *getELFSection(StringRef Section, unsigned Type,
259 const MCSectionCOFF *getCOFFSection(StringRef Section,
266 const MCSectionCOFF *getCOFFSection(StringRef Section,
270 const MCSectionCOFF *getCOFFSection(StringRef Section);
/trueos/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,
125Section (const lldb::SectionSP &parent_section_sp, // NULL for top level sections, non-NULL for…
137 ~Section ();
140 Compare (const Section& a, const Section& b);
240 IsDescendant (const Section *section);
307 DISALLOW_COPY_AND_ASSIGN (Section);
/trueos/contrib/llvm/include/llvm/Object/
HDELFYAML.h58 StringRef Section; member
67 struct Section { struct
78 std::vector<Section> Sections; argument
89 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Section)
151 struct MappingTraits<ELFYAML::Section> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
152 static void mapping(IO &IO, ELFYAML::Section &Section); in LLVM_YAML_IS_SEQUENCE_VECTOR()
HDCOFFYAML.h44 struct Section { struct
50 Section(); argument
64 std::vector<Section> Sections;
71 LLVM_YAML_IS_SEQUENCE_VECTOR(COFFYAML::Section)
129 struct MappingTraits<COFFYAML::Section> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
130 static void mapping(IO &IO, COFFYAML::Section &Sec); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/trueos/contrib/llvm/lib/Object/
HDELFYAML.cpp308 IO.mapOptional("Section", Symbol.Section, StringRef()); in mapping()
320 void MappingTraits<ELFYAML::Section>::mapping(IO &IO, in mapping()
321 ELFYAML::Section &Section) { in mapping() argument
322 IO.mapOptional("Name", Section.Name, StringRef()); in mapping()
323 IO.mapRequired("Type", Section.Type); in mapping()
324 IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); in mapping()
325 IO.mapOptional("Address", Section.Address, Hex64(0)); in mapping()
326 IO.mapOptional("Content", Section.Content); in mapping()
327 IO.mapOptional("Link", Section.Link); in mapping()
328 IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); in mapping()
HDCOFFObjectFile.cpp112 const coff_section *Section = NULL; in getSymbolFileOffset() local
113 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolFileOffset()
118 else if (Section) in getSymbolFileOffset()
119 Result = Section->PointerToRawData + symb->Value; in getSymbolFileOffset()
128 const coff_section *Section = NULL; in getSymbolAddress() local
129 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolAddress()
134 else if (Section) in getSymbolAddress()
135 Result = Section->VirtualAddress + symb->Value; in getSymbolAddress()
154 const coff_section *Section = NULL; in getSymbolType() local
155 if (error_code ec = getSection(symb->SectionNumber, Section)) in getSymbolType()
[all …]

1234567891011