Lines Matching defs:hdr
50 const typename ELFT::Shdr &hdr) {
51 if (hdr.sh_type == SHT_NOBITS)
52 return ArrayRef<uint8_t>(nullptr, hdr.sh_size);
53 return check(file.getObj().getSectionContents(hdr));
100 const typename ELFT::Shdr &hdr,
102 : InputSectionBase(&file, name, hdr.sh_type,
103 getFlags(file.ctx, hdr.sh_flags), hdr.sh_link,
104 hdr.sh_info, hdr.sh_addralign, hdr.sh_entsize,
105 getSectionContents(file, hdr), sectionKind) {
109 if (hdr.sh_addralign > UINT32_MAX) {
124 auto *hdr = reinterpret_cast<const typename ELFT::Chdr *>(sec.content_);
127 if (Error e = hdr->ch_type == ELFCOMPRESS_ZLIB
263 auto *hdr = reinterpret_cast<const typename ELFT::Chdr *>(content().data());
264 if (hdr->ch_type == ELFCOMPRESS_ZLIB) {
269 } else if (hdr->ch_type == ELFCOMPRESS_ZSTD) {
276 << uint32_t(hdr->ch_type) << ")";
282 size = hdr->ch_size;
283 addralign = std::max<uint32_t>(hdr->ch_addralign, 1);
1306 auto *hdr = reinterpret_cast<const typename ELFT::Chdr *>(content_);
1310 if (Error e = hdr->ch_type == ELFCOMPRESS_ZLIB