Merge pull request #82970 from etcwilde/ewilde/6.2-skip-unused-sections

[6.2🍒]: RemoteInspection: Skip unused ELF section headers
This commit is contained in:
Evan Wilde
2025-07-11 23:23:22 -07:00
committed by GitHub

View File

@@ -635,6 +635,9 @@ public:
return {nullptr, 0};
// Now for all the sections, find their name.
for (const typename T::Section *Hdr : SecHdrVec) {
// Skip unused headers
if (Hdr->sh_type == llvm::ELF::SHT_NULL)
continue;
uint32_t Offset = Hdr->sh_name;
const char *Start = (const char *)StrTab + Offset;
uint64_t StringSize = strnlen(Start, StrTabSize - Offset);