bfd: prune COFF/PE section flags setting
authorJan Beulich <jbeulich@suse.com>
Thu, 4 Mar 2021 15:56:02 +0000 (16:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Mar 2021 15:56:02 +0000 (16:56 +0100)
commit6b5465b917ed37f7ce5e9bc0b91e07e7adaf101a
tree423f20bd44c045feca2d7dc4ee156225588e6f16
parent6fa7408d72b3805536e3579ba46b48f07f2e780a
bfd: prune COFF/PE section flags setting

It is my understanding that IMAGE_SCN_LNK_* are supposed to communicate
information to the (static) linker, and become at best meaningless in PE
images. I wouldn't call loaders wrong which would refuse to process
sections with any of these bits set. While there's no replacement for
IMAGE_SCN_LNK_COMDAT, use IMAGE_SCN_MEM_DISCARDABLE in place of
IMAGE_SCN_LNK_REMOVE in this case.
bfd/ChangeLog
bfd/coffcode.h