Lines Matching refs:Shdr

70   Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B);  in writeShdr()  local
71 Shdr.sh_name = Sec.NameIndex; in writeShdr()
72 Shdr.sh_type = Sec.Type; in writeShdr()
73 Shdr.sh_flags = Sec.Flags; in writeShdr()
74 Shdr.sh_addr = Sec.Addr; in writeShdr()
75 Shdr.sh_offset = Sec.Offset; in writeShdr()
76 Shdr.sh_size = Sec.Size; in writeShdr()
77 Shdr.sh_link = Sec.Link; in writeShdr()
78 Shdr.sh_info = Sec.Info; in writeShdr()
79 Shdr.sh_addralign = Sec.Align; in writeShdr()
80 Shdr.sh_entsize = Sec.EntrySize; in writeShdr()
1501 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable() local
1502 if (!Shdr) in initSymbolTable()
1503 return Shdr.takeError(); in initSymbolTable()
1505 Expected<StringRef> StrTabData = ElfFile.getStringTableForSymtab(**Shdr); in initSymbolTable()
1512 ElfFile.symbols(*Shdr); in initSymbolTable()
1640 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection() argument
1641 switch (Shdr.sh_type) { in makeSection()
1644 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1645 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1655 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1656 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1666 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1671 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1676 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1681 if (Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr)) in makeSection()
1698 Expected<ArrayRef<uint8_t>> Data = ElfFile.getSectionContents(Shdr); in makeSection()
1702 Expected<StringRef> Name = ElfFile.getSectionName(Shdr); in makeSection()
1706 if (!(Shdr.sh_flags & ELF::SHF_COMPRESSED)) in makeSection()
1722 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders()
1727 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1731 Expected<StringRef> SecName = ElfFile.getSectionName(Shdr); in readSectionHeaders()
1735 Sec->Type = Sec->OriginalType = Shdr.sh_type; in readSectionHeaders()
1736 Sec->Flags = Sec->OriginalFlags = Shdr.sh_flags; in readSectionHeaders()
1737 Sec->Addr = Shdr.sh_addr; in readSectionHeaders()
1738 Sec->Offset = Shdr.sh_offset; in readSectionHeaders()
1739 Sec->OriginalOffset = Shdr.sh_offset; in readSectionHeaders()
1740 Sec->Size = Shdr.sh_size; in readSectionHeaders()
1741 Sec->Link = Shdr.sh_link; in readSectionHeaders()
1742 Sec->Info = Shdr.sh_info; in readSectionHeaders()
1743 Sec->Align = Shdr.sh_addralign; in readSectionHeaders()
1744 Sec->EntrySize = Shdr.sh_entsize; in readSectionHeaders()
1748 ElfFile.base() + Shdr.sh_offset, in readSectionHeaders()
1749 (Shdr.sh_type == SHT_NOBITS) ? (size_t)0 : Shdr.sh_size); in readSectionHeaders()
1815 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections() local
1819 ElfFile.rels(*Shdr); in readSections()
1827 ElfFile.relas(*Shdr); in readSections()
2006 Elf_Shdr &Shdr = in writeShdrs() local
2008 Shdr.sh_name = 0; in writeShdrs()
2009 Shdr.sh_type = SHT_NULL; in writeShdrs()
2010 Shdr.sh_flags = 0; in writeShdrs()
2011 Shdr.sh_addr = 0; in writeShdrs()
2012 Shdr.sh_offset = 0; in writeShdrs()
2016 Shdr.sh_size = Shnum; in writeShdrs()
2018 Shdr.sh_size = 0; in writeShdrs()
2021 Shdr.sh_link = Obj.SectionNames->Index; in writeShdrs()
2023 Shdr.sh_link = 0; in writeShdrs()
2024 Shdr.sh_info = 0; in writeShdrs()
2025 Shdr.sh_addralign = 0; in writeShdrs()
2026 Shdr.sh_entsize = 0; in writeShdrs()