[vm] Increase alignment in VM-generated ELF to 16k.

ARM64 Mac has 16k pages, so we need snapshot parts to be 16k aligned for our ELF loader to load them via mmap.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/42773
Change-Id: Ifa3d70e453ea72883d821e48cfc76b0d983391f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193821
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
Ryan Macnak 2021-04-19 18:12:48 +00:00 committed by commit-bot@chromium.org
parent 2d330c7985
commit bc21edaf17

View file

@ -32,7 +32,7 @@ class Elf : public ZoneAllocated {
Elf(Zone* zone, BaseWriteStream* stream, Type type, Dwarf* dwarf = nullptr);
static constexpr intptr_t kPageSize = 4096;
static constexpr intptr_t kPageSize = 16 * KB;
static constexpr uword kNoSectionStart = 0;
bool IsStripped() const { return dwarf_ == nullptr; }