From c10428f9868a262ab1c11f2c6c8b5396a2c77431 Mon Sep 17 00:00:00 2001 From: Collin Fijalkovich Date: Fri, 23 Apr 2021 14:09:16 -0700 Subject: [PATCH] Compile libhwui.so with 2MB section alignment. Adds the appropriate linker flags for libhwui to have 2MB section alignment. This allows the executable segments of the library to be backed by transparent hugepages on supporting systems. Bug: 158135888 Test: Verified ELF format Change-Id: I232ac4a8b753384bd92429b21ca703b74aa15ac9 --- libs/hwui/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index 6220abed05eb7..e74d3966a39b1 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -528,6 +528,7 @@ cc_library { "libhwui_defaults", "android_graphics_apex", "android_graphics_jni", + "linker_hugepage_aligned", ], export_header_lib_headers: ["android_graphics_apex_headers"], }