Skip to content

nix: enable 16 KB page sizes#6357

Merged
epoberezkin merged 3 commits intomasterfrom
sh/nix-16kb
Oct 24, 2025
Merged

nix: enable 16 KB page sizes#6357
epoberezkin merged 3 commits intomasterfrom
sh/nix-16kb

Conversation

@shumvgolove
Copy link
Copy Markdown
Contributor

Verification

Method 1

  1. Compile the library.
  2. Run:
llvm-objdump -p libsimplex.so | grep LOAD 

The output should be something like:

    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**14
    LOAD off    0x0000000003d494e0 vaddr 0x0000000003d4d4e0 paddr 0x0000000003d4d4e0 align 2**14
    LOAD off    0x0000000008de0090 vaddr 0x0000000008de8090 paddr 0x0000000008de8090 align 2**14
    LOAD off    0x0000000008e48608 vaddr 0x0000000008e54608 paddr 0x0000000008e54608 align 2**14
    LOAD off    0x000000000dc90000 vaddr 0x0000000009620000 paddr 0x0000000009620000 align 2**16

There should be no values less than 2**14.

Source: Android Developers: Use command-line tools directly to check the alignment

Method 2

  1. Download the script (Android Developers: check_elf_alignment.sh).
  2. Make it executable:
chmod +x ./check_elf_alignment.sh
  1. Execute like:
./check_elf_alignment.sh libsimplex.so 

The output should be:

=== ELF alignment ===
libsimplex.so: ALIGNED (2**14)
=====================

Source: Android Developers: Use the check_elf_alignment.sh script

@epoberezkin epoberezkin merged commit 52661e8 into master Oct 24, 2025
8 of 11 checks passed
@epoberezkin epoberezkin deleted the sh/nix-16kb branch October 24, 2025 15:05
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants