Skip to content

Commit

Permalink
Increase section alignment to 64k on Android. (#753)
Browse files Browse the repository at this point in the history
go/16k-app-guide
  • Loading branch information
rmacnak-google authored Aug 21, 2023
1 parent 15b2e9a commit 483c2b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ config("compiler") {

# Enable identical code folding to reduce size.
"-Wl,--icf=all",

# Currently defaults to 4k, but Android will be moving to 16k page size,
# and for future-proofing, 64k boundaries will be required.
"-Wl,-z,max-page-size=65536",
]

if (is_clang) {
Expand Down

0 comments on commit 483c2b9

Please sign in to comment.