PE known sections having certain flags enforced
Jan Beulich
JBeulich@suse.com
Mon Oct 9 13:35:00 GMT 2017
>>> On 09.10.17 at 15:04, <nickc@redhat.com> wrote:
>> Do you have any suggestion how to achieve this without creating
>> a custom tool to effect the change, and also without renaming the
>> section (since, as sad as it is, it's likely not just binutils to imply
>> section purpose from section name)?
>
> Hmm, well the only solution I can think of would be to enhance the
> --set-section-flags
> option of objcopy so that it could be used on PE binaries as well. This
> would be a bit of a hack though, as we would need to create a way to tell
> swap_scnhdr_out() that it should not override the flags that have been set.
>
> Patches welcome... :-)
Well, such a hack is specifically what I would _not_ like to contribute.
So I guess we'll have to continue to think of other possible solutions.
Jan
More information about the Binutils
mailing list