Skip to content

Make libmozc.so compatible with 16 KB page sizes #1364

@yukawa

Description

@yukawa

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

  1. bazelisk build --config oss_android package --config release_build
  2. 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

  • OS: Ubuntu 24.04

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions