Align aarch64 and x86_64 android runtimes to 16k page boundary
Bug: http://b/329169573
This covers compiler-rt and libc++ for both the platform and the NDK.
Previously platform compiler-rt libraries were aligned to 64k. Revert
it to 16k to be consistent across the NDK and the platform.
Test: build.py
Change-Id: I9f38cf67e8f7bb715ae2d29d0f2e1827963ae730
(cherry picked from commit ac8d4fa58849e1e6717785b75e9693bedee96282)
diff --git a/configs.py b/configs.py
index d7203bc..fa96489 100644
--- a/configs.py
+++ b/configs.py
@@ -526,6 +526,9 @@
ldflags.append('-pie')
if self.static:
ldflags.append('-static')
+ if (self.target_arch == hosts.Arch.X86_64 or
+ self.target_arch == hosts.Arch.AARCH64):
+ ldflags.append('-Wl,-z,max-page-size=16384')
return ldflags
@property