StoreRules

规则 · 支持 16 KB 页面大小 · Windows (PowerShell)

Step 2: Verify 16 KB compliance for RELRO

通俗解读

共享对象文件满足以下三个条件之一即符合 RELRO 的 16 KB 要求:没有 GNU_RELRO 段、GNU_RELRO 结束地址按 16 KB 对齐,或其后没有可写数据。

  • 条件 1:程序头中不存在 GNU_RELRO 段。
  • 条件 2:GNU_RELRO 结束地址按 16 KB 对齐,即 (VirtAddr + MemSiz) % 0x4000 == 0。
  • 条件 3:GNU_RELRO 之后在同一 LOAD 段中没有可写数据;GNU_RELRO 填满其 LOAD 段的剩余部分(LOAD.VirtAddr + LOAD.MemSiz == RELRO.VirtAddr + RELRO.MemSiz)。
  • 在条件 3 中,末尾页面不得包含可写的 .data 或 .bss 段。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

A shared object file is 16 KB compliant with respect to RELRO if any of the following conditions is met: 1. No GNURELRO segment exists in the program headers. 2. The GNURELRO end address is 16 KB aligned: The sum of its virtual address (VirtAddr) and memory size (MemSiz) divided by 16 KB (0x4000) leaves a remainder …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

变更历史

首次出现: 2026-11-04

开发者关于此条款的案例

暂无案例。

分享你的案例