bug-binutils
[Top][All Lists]
Advanced

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

Re:ld should make '.rsrc' section read-only on win32


From: Danny Smith
Subject: Re:ld should make '.rsrc' section read-only on win32
Date: Wed, 07 Dec 2005 19:35:35 +1300

Michael Popov   wrote:

> I use mingw to produce win32 executables.
> It makes executable with '.rsrc' section flags 0xC0000040
> which mean the section is writeable.


According to  "Microsoft Portable Executable and
Common Object File Format Specification (revision 6.0, Feb 1999)":

.rsrc section has flags

IMAGE_SCN_CNT_INITIALIZED_DATA |
IMAGE_SCN_MEM_READ |
IMAGE_SCN_MEM_WRITE


Danny





reply via email to

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