[PEFIXUP]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 24 Apr 2011 17:15:23 +0000 (17:15 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 24 Apr 2011 17:15:23 +0000 (17:15 +0000)
* Set IMAGE_SCN_MEM_NOT_PAGED flag for read-only data section (.rdata). Patch by Pavel Pisa.
See issue #5618 for more details.

svn path=/trunk/; revision=51447

reactos/tools/pefixup.c

index f908a9a..d6ec1f4 100644 (file)
@@ -381,6 +381,7 @@ int main(int argc, char **argv)
          if (!strcmp((char*)section_header->Name, ".text") ||
              !strcmp((char*)section_header->Name, ".data") ||
              !strcmp((char*)section_header->Name, ".idata") ||
+             !strcmp((char*)section_header->Name, ".rdata") ||
              !strcmp((char*)section_header->Name, ".bss"))
          {
             section_header->Characteristics |= htodl(IMAGE_SCN_MEM_NOT_PAGED);