This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PE known sections having certain flags enforced


>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]