StoreRules

Rules · Support 16 KB page sizes · Windows (PowerShell)

Step 2: Verify 16 KB compliance for RELRO

In plain words

A shared object file is 16 KB compliant for RELRO if at least one of three conditions is met: no GNU_RELRO segment, 16 KB-aligned RELRO end, or no writable data after it.

  • Condition 1: no GNU_RELRO segment exists in the program headers.
  • Condition 2: the GNU_RELRO end address is 16 KB aligned, i.e. (VirtAddr + MemSiz) % 0x4000 == 0.
  • Condition 3: no writable data follows GNU_RELRO in the same LOAD segment; GNU_RELRO fills the rest of its LOAD segment (LOAD.VirtAddr + LOAD.MemSiz == RELRO.VirtAddr + RELRO.MemSiz).
  • In condition 3, no writable .data or .bss sections share the trailing page.

Summary written by StoreRules and checked against the official text.

From the official text

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 …

Read the full official text ↗ Open in the StoreRules library Ask whether your app complies

Change history

First seen: 2026-11-04

Developers' cases about this clause

No cases yet.

Share your case