[PATCH] [llvm-objcopy] [COFF] Consider section flags when adding section
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Wed, 25 Aug 2021 20:03:32 +0000 (23:03 +0300)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Thu, 16 Jun 2022 10:00:08 +0000 (11:00 +0100)
commit8c64cc646930644a7c4c316f8fc24bea7c6ef843
tree2c3932e0d4c2969b72f6bf78f51401a371ca6005
parentaf39ddb77437481708c7c18957acde13b2fe5556
[PATCH] [llvm-objcopy] [COFF] Consider section flags when adding section

The --set-section-flags option was being ignored when adding a new
section. Take it into account if present.

Fixes https://llvm.org/PR51244

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D106942

Gbp-Pq: Name llvm-objcopy-COFF-Consider-section-flags-when-adding.patch
llvm/test/tools/llvm-objcopy/COFF/add-section-and-set-flags.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp