[PATCH] D101332: [llvm-objcopy] Exclude empty sections in IHexWriter output

Ian McIntyre via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 22 18:04:36 PDT 2021


mciantyre updated this revision to Diff 347221.
mciantyre retitled this revision from "[llvm-objcopy] Keep ihex sections with same address" to "[llvm-objcopy] Exclude empty sections in IHexWriter output".
mciantyre edited the summary of this revision.
mciantyre added a comment.

Implement James suggested tests; exclude zero-sized sections from output.

I skipped the "does not share offset or address with any section" test case. There's a similar section in the existing `ihex-elf-sections2.yaml` test input, part of `ihex-writer.test`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101332

Files:
  llvm/test/tools/llvm-objcopy/ELF/Inputs/ihex-elf-empty-sections.yaml
  llvm/test/tools/llvm-objcopy/ELF/ihex-writer-empty-sections.test
  llvm/tools/llvm-objcopy/ELF/Object.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101332.347221.patch
Type: text/x-patch
Size: 7222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210523/76b184b4/attachment.bin>


More information about the llvm-commits mailing list