Skip to content

Commit

Permalink
16K: Add linker alignment config to arm/arm64 targets in Bazel
Browse files Browse the repository at this point in the history
The product variable DeviceMaxPageSizeSupported will indicate
the binary alignment for the arm and arm64 targets.

To check that the linker flag for the binary alignment was included,
run:

$ ./prebuilts/build-tools/linux-x86/bin/ninja  -f out/combined-<target>.ninja -t commands com.android.adbd | grep max-page-size

To run the test cases:

$ b test --config=android //prebuilts/clang/host/linux-x86:cc_toolchain_features_linker_alignment_tests

//prebuilts/clang/host/linux-x86:custom_linker_alignment_flag_arm64_test (cached) PASSED in 0.1s
//prebuilts/clang/host/linux-x86:custom_linker_alignment_flag_arm_test (cached) PASSED in 0.1s
//prebuilts/clang/host/linux-x86:linker_alignment_flag_arm64_test (cached) PASSED in 0.1s
//prebuilts/clang/host/linux-x86:linker_alignment_flag_arm_test (cached) PASSED in 0.1s
//prebuilts/clang/host/linux-x86:linker_alignment_flag_x86_64_test (cached) PASSED in 0.1s
//prebuilts/clang/host/linux-x86:linker_alignment_flag_x86_test (cached) PASSED in 0.1s

Test: Unit tests
Bug: 276963698
Bug: 276801883
Change-Id: Ifcebb5f312c8230fe060d0909dbc89e05dded25b
  • Loading branch information
jyescas authored and mdb:android-git committed Apr 28, 2023
1 parent 9188801 commit 6e61034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prebuilts/clang/host/linux-x86
Submodule linux-x86 updated from f1c9c4 to 77b0c0

0 comments on commit 6e61034

Please sign in to comment.