[PATCH 2/6] bfd: prune COFF/PE section flags setting
Thu Mar 4 04:47:27 GMT 2021
On Tue, Mar 02, 2021 at 10:47:44AM +0100, Jan Beulich via Binutils wrote:
> 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.
> 2021-02-XX Jan Beulich <firstname.lastname@example.org>
> * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
> final PE images.
Australia Development Lab, IBM
More information about the Binutils