-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
macOS arm64 support #183
Comments
Apple Clang does not support
Apple Clang doesn't support
Apple Clang doesn't support
These allow you to get past compiler argument errors. |
The safe_flag check is meant to deal with that. You should figure out why that's not working. The issue with -fstack-clash-protection is that it's not implemented on arm64 yet. |
macOS does not seem to have The only closest alternative is threads.h by libxml:
|
hardened_malloc only uses threads.h for |
Apple LLVM linker does not support ANY
The linker is also trying to link to a shared GCC lib. Apple arm64 also uses 16k pages as documented here which is very likely to be too small: https://developer.apple.com/library/archive/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html
That issue will be tackled later down the road. Focus is to get the library to compile and the tests to compile. Then refine everything and make sure stuff still works for other OS's. |
Some changes had to be made to simple-memory-corruption as well. The main development is currently done by @iraizo and is published here: https://github.com/iraizo/hardened_malloc/tree/osx-support These changes are not final, heavily a WIP, and the changes made were just to compile and produce a library rather than based on accuracy or testing. SMC tests after their changes: https://gist.github.com/Zanthed/1bbe99243db0e4348938294841bf9e9a |
#192 is a first step in this direction. |
Looks good. |
(generic issue to track macOS arm64 support)
It's unclear at the moment what macOS x86 (Intel) does at the moment regarding some OS things like page sizes.
Output of
clang -v
:The text was updated successfully, but these errors were encountered: