-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Missing symbols for _mig_strncpy[_zerofill] #5
Comments
Thanks, I'm also using macOS 10.15.4, and used the method mentioned above, it works. |
Hi @jpflori, thanks for your report! I have now fixed that issue, I am trying to sort out some issues with the CI right now and I will push something on master soon. However I don't think importing the file is possible. XNU is licensed as APSL (Apple Public Source License v2) which seems incompatible with GPL (license used by Valgrind), so I did a "clean room implementation" based on the header of the file. |
Hi @jpflori, thanks for the help! I am running on 10.15.3 here, and I'm getting an error due to missing magic number here: https://github.com/LouisBrunner/valgrind-macos/blob/master/coregrind/m_syswrap/syswrap-x86-darwin.c#L428-L434 Seems like |
I have now merged the fix to |
Works great. Thx. |
On my computer, using 10.15.4, make fails at the linking stage complaining about missing symbols _mig_strncpy[_zerofill].
Simply putting the implementation from
https://github.com/apple/darwin-xnu/blob/master/libsyscall/mach/mig_strncpy.c
into a mach_strncpy.c file in coregrind/m_mach/ and adding it to the build process seems to work, e.g. with patch below.
Maybe stubs would be enough, I have no idea.
mach_strncpy.diff.txt
The text was updated successfully, but these errors were encountered: