[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)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 5 Nov 2022 08:14:23 +0000 (08:14 +0000)
commit0190b350a6b64cf2d7fc701606f9f938a60f77d9
treeeffeb86e611e508ff9916d5ffe0e3d01e91debc1
parent0555cb8cfd16f1cfe5185d0a4be04a4cac9a3bbe
[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