We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a610993 commit d536f14Copy full SHA for d536f14
llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -2215,7 +2215,7 @@ template <typename ELFT> void ELFDumper<ELFT>::parseDynamicTable() {
2215
const uint64_t FileSize = Obj.getBufSize();
2216
const uint64_t DerivedSize =
2217
(uint64_t)HashTable->nchain * DynSymRegion->EntSize;
2218
- const uint64_t Offset = (const uint8_t *)DynSymRegion->Addr - Obj.base();
+ const uint64_t Offset = DynSymRegion->Addr - Obj.base();
2219
if (DerivedSize > FileSize - Offset)
2220
reportUniqueWarning(
2221
"the size (0x" + Twine::utohexstr(DerivedSize) +
0 commit comments