Skip to content

Commit d48bd16

Browse files
Junliang YanCommit Bot
authored andcommitted
PPC: use 64KB ASLR hint on PPC
Change-Id: I2e461f3f7b3abc666ed5dcc3294a14d27ef0fe60 Reviewed-on: https://chromium-review.googlesource.com/1194583 Reviewed-by: Michael Lippautz <[email protected]> Commit-Queue: Junliang Yan <[email protected]> Cr-Commit-Position: refs/heads/master@{#55655}
1 parent 2b1ca97 commit d48bd16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/base/platform/platform-posix.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ void* OS::GetRandomMmapAddr() {
248248
// Use extra address space to isolate the mmap regions.
249249
raw_addr += uint64_t{0x400000000000};
250250
#elif V8_TARGET_BIG_ENDIAN
251-
// Big-endian Linux: 44 bits of virtual addressing.
251+
// Big-endian Linux: 42 bits of virtual addressing.
252252
raw_addr &= uint64_t{0x03FFFFFFF000};
253253
#else
254-
// Little-endian Linux: 48 bits of virtual addressing.
255-
raw_addr &= uint64_t{0x3FFFFFFFF000};
254+
// Little-endian Linux: 46 bits of virtual addressing.
255+
raw_addr &= uint64_t{0x3FFFFFFF0000};
256256
#endif
257257
#elif V8_TARGET_ARCH_MIPS64
258258
// We allocate code in 256 MB aligned segments because of optimizations using

0 commit comments

Comments
 (0)