-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AOT compiled apps fail when run on Apple Silicon #44001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
/cc @a-siva You might be the only one with one of those devices I assume. Could you take a look? |
This message comes from the VM's implementation of an ELF loader. ELF is generated with the assumption of 4kB pages, but Apple chose a different page size for ARM Macs. The ELF loader should not be running on a Mac, and the application should have generated Mach-O and be using the system Mach-O loader. This is a bug in |
@rmacnak-google We introduced the ELF loader when we needed BSS support in AOT snapshots and decided against adding BSS support to the old blobs format - so instead we made the ELF loader, supporting only the limited subset our ELF writer produces. For AOT we can rely on assembler atm, but let's say we want our AppJIT snapshots to also have a BSS section in them, we would probably want to use the same ELF writer + ELF loader mechanism, possibly on all platforms. So if it's not too much effort we might want to adjust ELF writer + ELF loader to support MacOS. |
Re-triaging to area-vm, which is I believe that best place to track this bug. |
Tried the above commands indicated in the description and it works
|
The following steps fail when run on Apple Silicon with an "File offset must be page-aligned."-error:
=>
The text was updated successfully, but these errors were encountered: