diff --git a/pe-packer.sln b/pe-packer.sln index 86f534e..b541ca4 100644 --- a/pe-packer.sln +++ b/pe-packer.sln @@ -7,14 +7,14 @@ Project("{36cc934f-acf5-4257-8a92-2e5a5cc892ee}") = "pe-packer", "pe-packer\pe-p EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 + Debug|x64 = Debug|x64 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {da27f89d-d345-47db-a8c4-cc980bb3df57}.Debug|x86.ActiveCfg = Debug|Win32 - {da27f89d-d345-47db-a8c4-cc980bb3df57}.Debug|x86.Build.0 = Debug|Win32 - {da27f89d-d345-47db-a8c4-cc980bb3df57}.Release|x86.ActiveCfg = Release|Win32 - {da27f89d-d345-47db-a8c4-cc980bb3df57}.Release|x86.Build.0 = Release|Win32 + {da27f89d-d345-47db-a8c4-cc980bb3df57}.Debug|x64.ActiveCfg = Debug|x64 + {da27f89d-d345-47db-a8c4-cc980bb3df57}.Debug|x64.Build.0 = Debug|x64 + {da27f89d-d345-47db-a8c4-cc980bb3df57}.Release|x64.ActiveCfg = Release|x64 + {da27f89d-d345-47db-a8c4-cc980bb3df57}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/pe-packer/core/core.cpp b/pe-packer/core/core.cpp index 4b1adff..2d12b22 100644 --- a/pe-packer/core/core.cpp +++ b/pe-packer/core/core.cpp @@ -28,8 +28,12 @@ c_core::c_core(std::string input_file, std::string output_file, std::uint32_t mu } JitRuntime jitRt; + Environment targetEnv = jitRt.environment(); + targetEnv.setArch(Arch::kX86); + targetEnv.setSubArch(SubArch::kUnknown); + m_codeHolder = std::make_unique(); - Error init_asmjit = m_codeHolder->init(jitRt.environment(), jitRt.cpuFeatures()); + Error init_asmjit = m_codeHolder->init(targetEnv, jitRt.cpuFeatures()); if (init_asmjit != kErrorOk) { print_error("Failed initialization\n"); diff --git a/pe-packer/pe-packer.vcxproj b/pe-packer/pe-packer.vcxproj index 952542f..7b166e8 100644 --- a/pe-packer/pe-packer.vcxproj +++ b/pe-packer/pe-packer.vcxproj @@ -1,13 +1,13 @@ - + Debug - Win32 + x64 - + Release - Win32 + x64 @@ -18,13 +18,13 @@ 10.0 - + Application true v143 MultiByte - + Application false v143 @@ -36,14 +36,14 @@ - + - + - + Level3 true @@ -55,7 +55,7 @@ true - + Level3 true