-
Notifications
You must be signed in to change notification settings - Fork 76
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
Call C dlfcn functions directly on android #263
Call C dlfcn functions directly on android #263
Conversation
So to test this, rollback hajimehoshi/ebiten@297efea and then test in Test Lab using a purego that has this PR in it. |
347a581 also passed the tests (i.e. the hardcoded values worked!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll test this with 32bit Android again
dlfcn_darwin.go
Outdated
RTLD_NOW = 0x2 // Relocations are performed when the object is loaded. | ||
RTLD_LOCAL = 0x4 // All symbols are not made available for relocation processing by other modules. | ||
RTLD_GLOBAL = 0x8 // All symbols are available for relocation processing of other modules. | ||
RTLD_DEFAULT = 0xffffffff_fffffffe // Pseudo-handle for dlsym so search for any loaded symbol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 << 64 - 2
might be better
Building failed for Android
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed this worked with Android 32bit and 64bit. LGTM, thanks!
What issue is this addressing?
Closes #262
What type of issue is this addressing?
bug
What this PR does | solves
Before we were link naming to the C symbols and hard coding the C constants on android. This PR calls the C functions directly.