https://sourceware.org/bugzilla/show_bug.cgi?id=30145
--- Comment #11 from Nick Clifton <nickc at redhat dot com> --- Created attachment 14926 --> https://sourceware.org/bugzilla/attachment.cgi?id=14926&action=edit Proposed patch Hi Pali, OK, here is an initial patch to add support for the various IMAGE_SCN_... flags to objcopy's --set-section-flags option. The patch is not complete yet - it does not update the documentation or the testsuite - but I thought that you might like to give it a try. One problem that I have found is that the BFD library enforces certain flags for certain sections (when working with PE format files). So for example the .text section is always given IMAGE_SCN_MEM_READ, IMAGE_SCN_CNT_CODE and IMAGE_SCN_MEM_EXECUTE, and this cannot be changed via the --set-section-flags option. I am not 100% sure, but I think that this behaviour may actually be mandated by the PE file format specification. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.