We were locating the dynamic string table via both the section and segment
headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242674
91177308-0d34-0410-b5e6-
96231b3b80d8
return;
}
DotDynSymSec = &Sec;
- ErrorOr<const Elf_Shdr *> SectionOrErr = getSection(Sec.sh_link);
- if ((EC = SectionOrErr.getError()))
- return;
- ErrorOr<StringRef> SymtabOrErr = getStringTable(*SectionOrErr);
- if ((EC = SymtabOrErr.getError()))
- return;
- DynStrRegion.Addr = SymtabOrErr->data();
- DynStrRegion.Size = SymtabOrErr->size();
- DynStrRegion.EntSize = 1;
break;
}
case ELF::SHT_DYNAMIC: