-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
No support for arm64e (iOS/macOS) #863
Comments
interesting because building using clang from llvm.org fails because -macos_version_min is what ld64.mold expects and the actual parameter being used is -macosx_version_min...but llvm.org clang passes -arch arm64 which works. it seems the Xcode clang is passing -arch arm64e to the linker which is different. can fix both problems, with -arch and -macos_version_min by looking in macho/cmdline.cc and amending it there. for -arch look for the line starting with "else if (arg == "arm64" " and patch to "else if (arg == "arm64" || arg == "arm64e")" to fix the problem you are having and for the other one "else if (read_arg("-macosx_version_min")) {" can become "else if (read_arg("-macosx_version_min") || read_arg("-macos_version_min")) {" |
arm64e is an ARM64 ABI with pointer authentication. It shouldn't be too hard to support it, but we need to learn the ABI first. |
|
This is obsolete. mold does not support macOS, and its macOS version (sold) is no longer maintained. Please use Apple's linker instead. |
I am building something with XCode 14.1 and passing "-fuse-ld=mold" through setting the LD_FLAGS argument to xcodebuild.
mold is returning:
How difficult would it be to support arm64e?
The text was updated successfully, but these errors were encountered: