Merge "linker: say 2MiB in more readable fashion." into main am: 9d54591bdd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3403259
Change-Id: I6b03aa0f6167bce60673bbf51d475b7d5b452329
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/linker/linker_phdr.cpp b/linker/linker_phdr.cpp
index e5369ac..ec2d27f 100644
--- a/linker/linker_phdr.cpp
+++ b/linker/linker_phdr.cpp
@@ -628,7 +628,7 @@
// Minimum alignment of shared library gap. For efficiency, this should match the second level
// page size of the platform.
#if defined(__LP64__)
- constexpr size_t kGapAlignment = 1ul << 21; // 2MB
+ constexpr size_t kGapAlignment = 2 * 1024 * 1024;
#else
constexpr size_t kGapAlignment = 0;
#endif