mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user