惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
月光博客
月光博客
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
小众软件
小众软件
量子位
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - talenth

windows下简单使用webrtc nvm配置nodejs ATL开发office插件 windows编译pp-shitu webdriver vs中/EHa、/EHs、/EHsc的区别 主窗口,子窗口,拥有窗口关闭消息顺序 windows下注册一个打开特定扩展名的文件 yara规则学习 usb3.0+mvme固态安装win7 驱动程序获取内核版本号 提取shell32.dll中的字符串 常见编码 修理鼠标微动开关 InfinityHook原理 段描述符 tls1.3报文 签名证书 windows内核同步机制
windows下不同cpu架构PE文件区别
talenth · 2024-08-28 · via 博客园 - talenth

参考网站: 

https://learn.microsoft.com/zh-cn/windows/arm/arm64ec-abi

https://github.com/struppigel/PortEx/blob/master/src/main/java/com/github/struppigel/tools/anomalies/SectionTableScanning.scala

https://www.hexacorn.com/blog/category/windows-11/

https://www.csdndoc.com/doc/18488.html

1 vs里各平台的宏定义

https://learn.microsoft.com/zh-cn/cpp/preprocessor/predefined-macros

平台

x86

_M_IX86, _WIN32

x64

_M_AMD64, _M_X64, _WIN64, _WIN32

ARM64

_M_ARM64, _WIN64, _WIN32 

ARM64EC

_M_ARM64EC, _M_AMD64, _M_X64, _WIN64, _WIN32 

2 windows下各平台ABI

https://learn.microsoft.com/zh-cn/cpp/build/arm64-windows-abi-conventions?view=msvc-170

https://learn.microsoft.com/zh-cn/windows/arm/arm64ec-abi#variadic-calling-convention

3 各pe格式区别

pe架构 文件头架构字段值 入口点所在段 section
x86 014C(INTEL386) ".text" 没有".a64xrm", 没有".hexpthk"
x64 8664(AMD64) ".text" 没有".a64xrm", 没有".hexpthk"
ARM64 AA64(ARM64bit) ".text" 没有".a64xrm", 没有".hexpthk"
ARM64EC 8664(AMD64) ".hexpthk" 有".a64xrm", 有".hexpthk"
ARM64X AA64(ARM64bit) ".text" 有".a64xrm", 有".hexpthk"

".a64xrm"-> "CHPEv2 section in a Compiled Hybrid Portable Executable, related to ARM"

".hexpthk"-> "Hybrid Executable Push Thunk section in a Compiled Hybrid Portable Executable (CHPE), related to ARM"

".00cfg" -> "Control Flow Guard section"