Skip to content

Commit

Permalink
Match PE loader's behavior (#40)
Browse files Browse the repository at this point in the history
This PR fixes #35 - the loader doesn't seem to care about `0x20` / `IMAGE_SCN_CNT_CODE` - only `0x20000000` / `IMAGE_SCN_MEM_EXECUTE`.
  • Loading branch information
0vercl0k authored Feb 19, 2022
1 parent 0c828c6 commit a22816c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp/pe_struct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ using RP_IMAGE_OPTIONAL_HEADER64 = RP_IMAGE_OPTIONAL_HEADER<x64Version>;
// Section header format.
//

const uint32_t RP_IMAGE_SCN_MEM_EXECUTE = 0x00000020;
const uint32_t RP_IMAGE_SCN_MEM_EXECUTE = 0x20'00'00'00;
const uint32_t RP_IMAGE_SIZEOF_SHORT_NAME = 8;

struct RP_IMAGE_SECTION_HEADER {
Expand Down

0 comments on commit a22816c

Please sign in to comment.