[PATCH] D128705: [llvm-objdump] Create fake sections for a ELF core file

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 10:34:23 PDT 2022


MaskRay added inline comments.


================
Comment at: llvm/include/llvm/Object/ELF.h:768
+template <class ELFT> void ELFFile<ELFT>::createFakeSections() {
+  if (getHeader().e_type != ELF::ET_CORE || !FakeSections.empty())
+    return;
----------------
This should not be restricted to ET_CORE. `llvm-strip --strip-sections` processed files can be disassembled by objdump -d


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128705/new/

https://reviews.llvm.org/D128705



More information about the llvm-commits mailing list