/external/llvm/tools/obj2yaml/ |
coff2yaml.cpp | 59 COFFYAML::Section Sec; 60 Sec.Name = Sect->Name; // FIXME: check the null termination! 62 Sec.Header.Characteristics = Characteristics; 63 Sec.Alignment = 1 << (((Characteristics >> 20) & 0xf) - 1); 67 Sec.SectionData = object::yaml::BinaryRef(sectionData); 81 Sec.Relocations = Relocations; 82 Sections.push_back(Sec);
|
/external/llvm/tools/yaml2obj/ |
yaml2coff.cpp | 41 COFFYAML::Section &Sec = *i; 45 StringRef Name = Sec.Name; 48 std::copy(Name.begin(), Name.end(), Sec.Header.Name); 57 Sec.Header.Name[0] = '/'; 58 std::copy(str.begin(), str.end(), Sec.Header.Name + 1); 61 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20;
|
yaml2elf.cpp | 314 const ELFYAML::Section &Sec = Sections[i]; 317 SHeader.sh_name = SHStrTab.addString(Sec.Name); 318 SHeader.sh_type = Sec.Type; 319 SHeader.sh_flags = Sec.Flags; 320 SHeader.sh_addr = Sec.Address; 322 Sec.Content.writeAsBinary(CBA.getOSAndAlignedOffset(SHeader.sh_offset)); 323 SHeader.sh_size = Sec.Content.binary_size(); 325 if (!Sec.Link.empty()) { 327 if (SN2I.lookupSection(Sec.Link, Index)) { 328 errs() << "error: Unknown section referenced: '" << Sec.Lin [all...] |
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 74 const MCSection *Sec = getContext().getELFSection(NameData, 80 Streamer.SwitchSection(Sec); 804 const MCSection *Sec = getDrectveSection(); 805 Streamer.SwitchSection(Sec);
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
RuntimeDyldMachO.cpp | 325 SectionRef Sec = MachO->getRelocationSection(RE); 326 Value.SectionID = findOrEmitSection(Obj, Sec, true, ObjSectionToID); 328 Sec.getAddress(Addr);
|
/external/llvm/lib/MC/ |
WinCOFFObjectWriter.cpp | 368 MCSectionCOFF const &Sec = 371 COFFSection *coff_section = createSection(Sec.getSectionName()); 372 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName()); 382 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection(); 384 coff_section->Header.Characteristics = Sec.getCharacteristics(); 800 COFFSection *Sec = SectionMap[&i->getSection()]; 802 if (Sec->Number == -1) 805 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i); 807 if (IsPhysicalSection(Sec)) { 808 Sec->Header.PointerToRawData = offset [all...] |
MCDwarf.cpp | 330 const MCSection *Sec = *it; 331 const MCLineSection *Line = MCLineSections.lookup(Sec); 332 EmitDwarfLineTable(MCOS, Sec, Line, CUID); [all...] |
/external/llvm/lib/Object/ |
MachOObjectFile.cpp | 238 unsigned Sec) { 247 uintptr_t SectionAddr = CommandAddr + SegmentLoadSize + Sec * SectionSize; 404 DataRefImpl Sec) { 406 macho::Section64 Sect = O->getSection64(Sec); 409 macho::Section Sect = O->getSection(Sec); 436 const char *Sec = getSectionPtr(this, Load, J); 437 Sections.push_back(Sec); 489 macho::Section64 Sec = getSection64(SecRel); 490 Delta = Sec.Offset - Sec.Address [all...] |
/external/llvm/include/llvm/Object/ |
ELF.h | 629 void LoadVersionDefs(const Elf_Shdr *sec) const; 690 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const; 691 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const; 692 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const; 693 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const; 694 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const; 695 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const; 696 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const; 697 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const; 698 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const 1259 const Elf_Shdr *sec = getSection(symb); local 1282 const uint8_t *sec = reinterpret_cast<const uint8_t *>(Sec.p); local 1292 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1300 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1308 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1316 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1333 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1341 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1352 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1364 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1376 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1387 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1398 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1408 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1422 const Elf_Shdr *sec = reinterpret_cast<const Elf_Shdr *>(Sec.p); local 1489 const Elf_Shdr *sec = getRelSection(Rel); local 1531 const Elf_Shdr *sec = getRelSection(Rel); local 1545 const Elf_Shdr *sec = getRelSection(Rel); local 2242 const Elf_Shdr *sec = getRelSection(Rel); local 2284 const Elf_Shdr *sec = getRelSection(Rel); local 2302 const Elf_Shdr *sec = getRelSection(Rel); local 2870 const Elf_Shdr *sec = getSection(Symb.d.b); local [all...] |