-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native_toolchain_c] Android 15 16kb elf alignment #1611
Comments
Also possibly related flutter/flutter#125090 |
Out of curiosity: Does Android's NDK compiler toolchain not automatically use 16 KB by-default? Or is this for handling older Android compiler toolchains that don't have that default yet? |
Related: #1608
NDK r27 does with this flag set: |
We're currently still on r26b on the CI here: native/.github/workflows/native.yaml Line 55 in 16918ae
Also flutter_tools is at 26 at the moment: If you invoke 27 or up directly (not via Groovy, Kotlin, or |
Bumping the version on the CI here: |
Workaround before we address this: final cbuilder = CBuilder.library(
name: packageName,
assetName: '${packageName}_bindings_generated.dart',
sources: [
'src/$packageName.c',
],
flags: ['-Wl,-z,max-page-size=16384',], // <----
); |
Android 15 has the support to require dylib elf sections to be 16kb aligned.
We should probably have a default flag for this in
package:native_toolchain_c
so that packages usingflutter create --template package_ffi
will work out of the box for Android 15 devices with 16kb memory pages.Context:
The text was updated successfully, but these errors were encountered: