Description
While the document says that NDK version r28 and higher compile 16 KB-aligned by default, it seems that we still need to explicitly set linker options to ensure 16 KB alignment.
Steps to reproduce
bazelisk build --config oss_android package --config release_build
- Run the following command.
unzip -p bazel-bin/android/jni/native_libs.zip libs/arm64-v8a/libmozc.so | third_party/ndk/android-ndk-r28/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objdump -p - | grep LOAD | awk '{ print $NF }' | head -1
Expected behavior
2**14 is shown.
Actual behavior
2**12 is shown.
Version or commit-id
ce1fb7f
Environment
Description
While the document says that NDK version r28 and higher compile 16 KB-aligned by default, it seems that we still need to explicitly set linker options to ensure 16 KB alignment.
Steps to reproduce
bazelisk build --config oss_android package --config release_buildExpected behavior
2**14is shown.Actual behavior
2**12is shown.Version or commit-id
ce1fb7f
Environment