[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, 21 Jul 2022 07:14:44 +0000 (08:14 +0100)
commit2332c0462b86bd65b5300bb1c925411438497ac3
treeae2c0713c8099556be21cb68ad6d52da54357212
parent3ace5331048af76551a633060ca726fe3639f9bb
[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