mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
remove magic constant
This commit is contained in:
parent
0cc75ae27c
commit
7399dc8ae4
1 changed files with 1 additions and 2 deletions
|
@ -147,8 +147,7 @@ pub fn synthetic_dll(custom_names: &[String]) -> Vec<u8> {
|
|||
|
||||
// we store the export directory in a .rdata section
|
||||
let rdata_section: (_, Vec<u8>) = {
|
||||
// not sure if that 0x40 is important, I took it from a .dll that zig produced
|
||||
let characteristics = object::pe::IMAGE_SCN_MEM_READ | 0x40;
|
||||
let characteristics = object::pe::IMAGE_SCN_MEM_READ | pe::IMAGE_SCN_CNT_INITIALIZED_DATA;
|
||||
let range = writer.reserve_section(
|
||||
*b".rdata\0\0",
|
||||
characteristics,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue