Skip to content

ARM64 NDK startup reference: libc versus freestanding ELF - #1479

Draft
mark-e-deyoung wants to merge 3 commits into
mainfrom
rdte/arm64-ndk-startup-reference
Draft

mark-e-deyoung wants to merge 3 commits into
mainfrom
rdte/arm64-ndk-startup-reference

Conversation

@mark-e-deyoung

@mark-e-deyoung mark-e-deyoung commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Current disposition — scoped reference experiment complete

  • Original head e2221ed10f30e0cbce334b75781479fa6e312976, run 47674596457. Freestanding ET_EXEC and relocation-free ET_DYN each passed 3/3 QEMU user-mode trials; malformed ELF rejected. Bionic static control failed due to unused -no-pie promoted by -Werror; static PIE executed unsuccessfully. Preserve both originals 15997419834 and 15998117161.
  • Corrective head ef834fc3d95b6677ba9f5cb67d863952736aac2b, run 47674923370 SUCCESS, hygiene 47674923464 SUCCESS. Only affected libc cohort repeated; removed unused argument and included packed RELR in relocation inventory. Exact NDK 30.0.16248370 API34, Clang 21.0.0, QEMU user-mode 8.2.2. Static ET_EXEC 3/3 successful; packed RELR and unpacked RELA static PIE 0/3 each, QEMU reports internal SIGSEGV; dynamic PIE linked, not executed. Driver selects distinct static/dynamic startup objects. Artifact 15998616306 includes exact synthetic ELFs, startup objects, driver/linker maps, relocation/disassembly and raw exits.
  • Independent readback verified all three archive SHA-256 values, CRCs, 167 manifest members and the linked ELF/run-output digests. Corrected result is a discriminating reference experiment, not evidence that static PIE or a dynamic Android runtime is qualified. Preserve original failures; no duplicate freestanding run.

No Android runtime supplied by NDK stubs, no board/system boot claim, private data, original target firmware, paid runners, merge or release. Retain draft/source pin pending durable evidence custody and successor qualification.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant