-
Notifications
You must be signed in to change notification settings - Fork 566
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
i#5383: Fix macOS preload on a64 #7170
base: master
Are you sure you want to change the base?
Conversation
This fixes build issues and issues with the preload
It appears I broke the x86 macOS tests, not sure what's going on there yet |
If it helps: check out the "Debugging Tests on Github Actions Runner" section at https://dynamorio.org/page_test_suite.html, which documents a way to ssh into the failing test machine. |
Alright somehow adding
|
I don't think |
This fixes several build and runtime issues under macOS on ARM64 on macOS 14.4.1 (Sonoma)
FEATURE_PAUTH
is now detected on macOS using a sysctl (capability MSRs cannot be read in userspace on M3 at least)_init
needs__attribute__((constructor))
to be run by dylddynamorio_set_envp
needs to be called beforeget_application_short_name
can work (on macOS the application path is placed after envp)PLATFORM_SUPPORTS_SCATTER_GATHER
was broken, disabled for now on a64 macOSsimd
size and was failing on an assertKnown issues that remain:
-vm_size 500M
seems to fix this. i#5383: Fix macOS arm64 test build/run #7171 adds this flag to tests on macOS+ARM64.vmh_exit
are reached upon process exitThe end result is that the
bbcount
tool works on a simple toy program on macOS, in debug mode, without hitting any asserts: