Lines Matching refs:hdr
46 const typename ELFT::Shdr &hdr) { in getSectionContents() argument
47 if (hdr.sh_type == SHT_NOBITS) in getSectionContents()
48 return makeArrayRef<uint8_t>(nullptr, hdr.sh_size); in getSectionContents()
49 return check(file.getObj().getSectionContents(hdr)); in getSectionContents()
91 const typename ELFT::Shdr &hdr, in InputSectionBase() argument
93 : InputSectionBase(&file, getFlags(hdr.sh_flags), hdr.sh_type, in InputSectionBase()
94 hdr.sh_entsize, hdr.sh_link, hdr.sh_info, in InputSectionBase()
95 hdr.sh_addralign, getSectionContents(file, hdr), name, in InputSectionBase()
100 if (hdr.sh_addralign > UINT32_MAX) in InputSectionBase()
209 auto *hdr = reinterpret_cast<const typename ELFT::Chdr *>(rawData.data()); in parseCompressedHeader() local
210 if (hdr->ch_type == ELFCOMPRESS_ZLIB) { in parseCompressedHeader()
216 Twine(hdr->ch_type) + ")"); in parseCompressedHeader()
220 uncompressedSize = hdr->ch_size; in parseCompressedHeader()
221 alignment = std::max<uint32_t>(hdr->ch_addralign, 1); in parseCompressedHeader()
222 rawData = rawData.slice(sizeof(*hdr)); in parseCompressedHeader()