Commit Graph
3 Commits
Author SHA1 Message Date
Cmake 64b374fa06 runtime: 让 runtime 在 Linux 上可构建 + 资源打包脚本
- runtime/precompiled.h: sys/sysctl.h 只在 __APPLE__ 引入;补 <cstdarg>
- runtime/lin_runtime.mak: curl 改为 -lcurl + pkg-config(原来是写死 ~/curl-7.35.0-64)
- core/gen_inc_lin.py: 把 lin_runtime.so 打成 lin_runtimeNN.so.inc(key + 位置异或,格式对齐
  IFile::OpenResource(is_enc=true)),_so_code 写空表
- runtime/licensing_manager.cc: SetSerialNumber 加 DOGDBG=1 才输出的 [dbrt] 跟踪
- tools/dogkeygen/testhost_lin.c: Linux 侧 SDK 调用测试宿主
- BUILD-LINUX.md: 补 runtime 构建与 .inc 格式说明(含 _so_code 缺失导致授权调用被打桩的结论)
2026-11-23 17:37:54 +08:00
admin f742770311 build(linux): 让 Core/SDK/Console 在 Linux 上按顺序直接编译通过
- core/precompiled.h: sys/sysctl.h 用 __APPLE__ 包住
- runtime/crypto.h: 自定义 __rdtsc 与 clang 内建冲突 → vmp_rdtsc + 宏转发
- core/core.cc: OutputDebugStringA 条件编译;OpenSSL3 用 RSA_get0_key 取 n/e/d
- runtime/precompiled.h / core/intel.cc / core/processors.cc: <intrin.h> 在 Linux 走 <x86intrin.h>
- core/objects.cc: 补 <cstdarg>(PCH 同步)
- core/pefile.cc: MSVC union 写法改直接成员名(UnwindInfoAddress / Characteristics)
- lin_common.mak: 去掉 -Werror;加 .DEFAULT_GOAL := all(原来默认目标是 clean)
- VMProtectCon/lin_console.mak: -lcrypto -lz 替代静态 libcrypto.a;-no-pie(预编译 libffi 非 PIE);--allow-multiple-definition(strlcpy 与 glibc 重名)
- BUILD-LINUX.md: 依赖、构建顺序、10 处改动原因、能力边界、授权提示

实测:Debian 13 + clang 19,四条 make 依次通过,产出
bin/64/release/vmprotect_con (41MB),对 /bin/true、/bin/echo 与一个 PE32+ 产物
分别加壳成功(Load/Compile/Save/Pack/startup code 全跑完)。
2026-11-23 15:12:07 +08:00
admin 5b911aea90 Initial import: VMProtect 3.5.1 (build 1024) 2026-11-13 03:29:59 +08:00