Lines Matching defs:hdr
2909 nd.hdr = ni.getHeader();
2910 if (nd.hdr.Format != DwarfFormat::DWARF32) {
2915 if (nd.hdr.Version != 5) {
2916 Err(ctx) << namesSec.sec << ": unsupported version: " << nd.hdr.Version;
2926 SmallVector<uint32_t, 0> entryOffsets = readOffsets(numCus, nd.hdr, locs);
2930 nd.nameEntries.resize(nd.hdr.NameCount);
2931 for (auto i : seq(nd.hdr.NameCount)) {
2965 numCus += nd.hdr.CompUnitCount;
2983 TimeTraceScope timeScope("Merge .debug_names", "hdr and abbrev table");
2985 hdr.Format = DwarfFormat::DWARF32;
2986 hdr.Version = 5;
2987 hdr.CompUnitCount = 0;
2988 hdr.LocalTypeUnitCount = 0;
2989 hdr.ForeignTypeUnitCount = 0;
2990 hdr.AugmentationStringSize = 0;
2998 hdr.CompUnitCount += nd.hdr.CompUnitCount;
3001 if (nd.hdr.LocalTypeUnitCount || nd.hdr.ForeignTypeUnitCount)
3006 hdr.AugmentationStringSize = nd.hdr.AugmentationStringSize;
3007 hdr.AugmentationString = nd.hdr.AugmentationString;
3008 } else if (hdr.AugmentationString != nd.hdr.AugmentationString) {
3011 hdr.AugmentationStringSize = 0;
3012 hdr.AugmentationString.clear();
3023 dwarf::Form cuAttrForm = getMergedCuCountForm(hdr.CompUnitCount).second;
3077 hdr.AbbrevTableSize = abbrevTableBuf.size();
3097 const uint8_t cuAttrSize = getMergedCuCountForm(hdr.CompUnitCount).first;
3223 std::tie(entryPoolSize, hdr.NameCount) = computeEntryPool(inputChunks);
3224 hdr.BucketCount = dwarf::getDebugNamesBucketCount(hdr.NameCount);
3227 uint32_t hdrSize = getDebugNamesHeaderSize(hdr.AugmentationStringSize);
3228 size = findDebugNamesOffsets(hdrSize, hdr).EntriesBase + entryPoolSize;
3229 hdr.UnitLength = size - 4;
3256 uint32_t numCus, const DWARFDebugNames::Header &hdr,
3261 chunk.compUnits.resize_for_overwrite(numCus + hdr.CompUnitCount);
3262 for (auto i : seq(hdr.CompUnitCount))
3268 entryOffsets.resize_for_overwrite(hdr.NameCount);
3310 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.UnitLength);
3311 endian::writeNext<uint16_t, ELFT::Endianness>(buf, hdr.Version);
3313 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.CompUnitCount);
3314 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.LocalTypeUnitCount);
3315 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.ForeignTypeUnitCount);
3316 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.BucketCount);
3317 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.NameCount);
3318 endian::writeNext<uint32_t, ELFT::Endianness>(buf, hdr.AbbrevTableSize);
3320 hdr.AugmentationStringSize);
3321 memcpy(buf, hdr.AugmentationString.c_str(), hdr.AugmentationString.size());
3322 buf += hdr.AugmentationStringSize;
3332 SmallVector<SmallVector<NameEntry *, 0>, 0> buckets(hdr.BucketCount);
3336 buckets[ne.hashValue % hdr.BucketCount].push_back(&ne);
3623 auto *hdr = reinterpret_cast<GdbIndexHeader *>(buf);
3625 hdr->version = 7;
3626 buf += sizeof(*hdr);
3629 hdr->cuListOff = buf - start;
3639 hdr->cuTypesOff = buf - start;
3640 hdr->addressAreaOff = buf - start;
3655 hdr->symtabOff = buf - start;
3674 hdr->constantPoolOff = buf - start;