bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/30142] PE .rsrc section is generated as writable


From: nickc at redhat dot com
Subject: [Bug binutils/30142] PE .rsrc section is generated as writable
Date: Wed, 12 Apr 2023 15:22:03 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30142

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 14815
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14815&action=edit
Proposed patch

Hi Pali,

  Please could you try out this patch and see if it works for you ?

  The fault lies with the windres program, not the linker.  The windres
  program is setting the IMAGE_SCN_MEM_WRITE flag when it creates the .rsrc
  section, and the linker is then preserving this flag when it runs.  So
  the patch fixes windres so that it no longer sets the flag, and this in
  turn means that the linked executable will have a read-only .rsrc section.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]