[PATCH] D44469: [llvm-readobj] - Teach llvm-readobj to dump .note.gnu.property sections.
Rafael Avila de Espindola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 15 14:23:52 PDT 2018
espindola added inline comments.
================
Comment at: tools/llvm-readobj/ELFDumper.cpp:3490
+ if (Data.size() >= sizeof(typename ELFT::uint)) {
+ uint64_t StackSize = ELFT::Is64Bits
+ ? support::endian::read64(Data.data(), E)
----------------
Since this function is templated on ELFT I think you can just used ELFT::Addr:
uint64_t StackSize = *(ELFT::Addr*)Data.data();
https://reviews.llvm.org/D44469
More information about the llvm-commits
mailing list