aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-05-12 01:01:25 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-05-12 01:01:25 +0000
commit4b15ac0610010b68086ef3b7f6e82db9195fbb13 (patch)
tree7955ca9d3e2879e959abd980d4d9201f4a77bcf3
parent9e0511f7a96fa031ad24fc98bc96b71a2da5d5ab (diff)
parent733895f67315b6339399145be1e4260a103f835f (diff)
downloadbionic-4b15ac0610010b68086ef3b7f6e82db9195fbb13.tar.gz
Snap for 7354453 from 733895f67315b6339399145be1e4260a103f835f to sc-release
Change-Id: Ie401d6777835d2276ad4c9ba6e96b2090da8cd76
-rw-r--r--linker/Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/linker/Android.bp b/linker/Android.bp
index 284da5821..4a5bf44a6 100644
--- a/linker/Android.bp
+++ b/linker/Android.bp
@@ -414,6 +414,19 @@ sh_binary {
bazel_module: { bp2build_available: true },
}
+// Used to generate binaries that can be backed by transparent hugepages.
+cc_defaults {
+ name: "linker_hugepage_aligned",
+ arch: {
+ arm64: {
+ ldflags: ["-z max-page-size=0x200000"],
+ },
+ x86_64: {
+ ldflags: ["-z max-page-size=0x200000"],
+ },
+ },
+}
+
cc_library {
// NOTE: --exclude-libs=libgcc.a makes sure that any symbols ld-android.so pulls from
// libgcc.a are made static to ld-android.so. This in turn ensures that libraries that