mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[PEFIXUP]
* 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
This commit is contained in:
parent
0e5118d97b
commit
2a9813d015
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue