StoreRules

Rules · Support 16 KB page sizes · Examples

Example 1: Non-aligned .so file (Non-compliant)

In plain words

A .so file whose GNU_RELRO segment ends at a non-16 KB-aligned address inside a writable LOAD segment is non-compliant, and must be rebuilt with 16 KB ELF alignment.

  • Example: GNU_RELRO shares an RW LOAD segment with later writable data, and its end address isn't a multiple of 0x4000.
  • Check: (VirtAddr + MemSiz) % 0x4000 should be 0; here (0xdfaf0 + 0x01510) % 0x4000 = 0x1000, so it fails.
  • The LOAD segment continues past 0xE1000, ending at 0xE4000, so the file isn't 16 KB compliant.
  • On a 16 KB device, the linker rounds the RELRO range to page boundaries, marking 0xDC000 to 0xE4000 read-only.
  • Writable .data and .bss in 0xE1000–0xE4000 then cause a segmentation fault when modified at runtime.
  • Rebuild the .so file as described in the Compile your app using 16 KB ELF alignment section.

Summary written by StoreRules and checked against the official text.

From the official text

In this example, GNURELRO shares a RW LOAD segment with subsequent writable data, and its end address isn't a multiple of 0x4000: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x0cfaf0 0x0cfaf0 R E 0x4000 LOAD 0x0cfaf0 0x00000000000dfaf0 0x00000000000dfaf0 …

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