Last active
January 28, 2020 11:43
-
-
Save kateinoigakukun/cf4de60310ac7be30b69fbc3a5500e0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlfcn.h> | |
#include <stdio.h> | |
int main(void) { | |
void *handle = dlopen("/home/katei/.swiftenv/versions/5.1.3-RELEASE/usr/lib/swift/linux/libswiftCore.so", RTLD_LAZY); | |
char *start = dlsym(handle, "__start_swift5_protocols"); | |
printf("start = %p", start); | |
return 0; | |
} |
Author
kateinoigakukun
commented
Jan 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment