mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
[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:
parent
2d330c7985
commit
bc21edaf17
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue