This is the ELF part of D75949.
GNU objcopy from binutils 2.35 onwards will support an empty non-SHT_NOBITS section as
well
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=e052e2ba295a65b6ea80cbc3f90495beca299c42
Paths
| Differential D79339
[llvm-objcopy][ELF] Allow --dump-section to dump an empty non-SHT_NOBITS section ClosedPublic Authored by MaskRay on May 4 2020, 10:12 AM.
Details Summary This is the ELF part of D75949. GNU objcopy from binutils 2.35 onwards will support an empty non-SHT_NOBITS section as
Diff Detail
Event TimelineMaskRay added a parent revision: D79338: [Support] Allow FileOutputBuffer::create to create an empty file.May 4 2020, 10:12 AM Comment Actions LGTM.
This revision is now accepted and ready to land.May 5 2020, 12:21 AM Closed by commit rG32b19334da14: [llvm-objcopy][ELF] Allow --dump-section to dump an empty non-SHT_NOBITS section (authored by MaskRay). · Explain WhyMay 5 2020, 8:36 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 262126 llvm/test/tools/llvm-objcopy/ELF/dump-section.testllvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
|
Nit: the prevailing pattern for FileCheck directives in this file is currently #CHECK: (no space). I'm okay if you want to change the other lines to match the # CHECK: style, but perhaps do as a separate NFC commit. Alternatively, make this match the existing ones.