[PATCH] objcopy: Allow --dump-section to dump an empty SEC_HAS_CONTENTS section
authorFangrui Song <maskray@google.com>
Mon, 4 May 2020 16:04:25 +0000 (17:04 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 4 May 2020 16:04:25 +0000 (17:04 +0100)
commite052e2ba295a65b6ea80cbc3f90495beca299c42
tree8e1fe52512a6257c597917d47cc2cd5731dc1dfe
parent7242fa8aa7596b4e154ca96ddf5ce49353bf2e5d
[PATCH] objcopy: Allow --dump-section to dump an empty SEC_HAS_CONTENTS section

* objcopy.c (copy_object): Allow empty section.
* testsuite/binutils-all/update-section.exp: Add test.
binutils/ChangeLog
binutils/objcopy.c
binutils/testsuite/binutils-all/update-section.exp