[Lldb-commits] [PATCH] D157059: [lldb][PECOFF] Exclude alignment padding when reading section data

Hiroshi Yamauchi via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 3 17:34:14 PDT 2023


hjyamauchi created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
hjyamauchi requested review of this revision.
Herald added projects: LLDB, LLVM.
Herald added subscribers: llvm-commits, lldb-commits.

There can be zero padding bytes at a section end for file alignment in PECOFF. Exclude those padding bytes when reading the section data.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157059

Files:
  lldb/include/lldb/Symbol/ObjectFile.h
  lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
  lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h
  lldb/source/Symbol/ObjectFile.cpp
  lldb/unittests/ObjectFile/PECOFF/CMakeLists.txt
  lldb/unittests/ObjectFile/PECOFF/TestSectionSize.cpp
  llvm/lib/ObjectYAML/COFFYAML.cpp
  llvm/test/tools/yaml2obj/COFF/invalid-raw-data.yaml
  llvm/test/tools/yaml2obj/COFF/xrelocs.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157059.547063.patch
Type: text/x-patch
Size: 8091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230804/bcf4c4cb/attachment.bin>


More information about the lldb-commits mailing list