Skip to content
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

OSX and iOS support #6

Open
HarryR opened this issue Oct 9, 2017 · 0 comments
Open

OSX and iOS support #6

HarryR opened this issue Oct 9, 2017 · 0 comments

Comments

@HarryR
Copy link
Collaborator

HarryR commented Oct 9, 2017

According to http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system

#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))

Support for running from memory on macOS works like:

https://github.com/CylanceVulnResearch/osx_runbin/blob/master/run_bin.c

This changes the executable type to MH_BUNDLE, but it uses a number of hardcoded magic strings and I don't know if they're portable across many versions, or if it'd work on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant