Skip to content

fix(whisper): 16 KB-align libwhisper_jni.so LOAD segments - #326

Merged
SMK1705 merged 1 commit into
mainfrom
fix/whisper-16kb-align
Jul 23, 2026
Merged

fix(whisper): 16 KB-align libwhisper_jni.so LOAD segments#326
SMK1705 merged 1 commit into
mainfrom
fix/whisper-16kb-align

Conversation

@SMK1705

@SMK1705 SMK1705 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

NDK r27 still defaults native .so LOAD segments to 4 KB alignment, which fails
the 16 KB page-size check on Android 15+ ("LOAD segment not aligned") and would
stop the lib loading on a 16 KB-page device. Add -Wl,-z,max-page-size=16384 so
the segments align to 16 KB (0x4000). Verified with llvm-readelf.
@SMK1705
SMK1705 merged commit 9d2cdde into main Jul 23, 2026
1 check passed
@SMK1705
SMK1705 deleted the fix/whisper-16kb-align branch July 23, 2026 22:17
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