4 ms·
How would you tell it which shared library to dlopen? Was looking into changing the order of arguments to go the right way 'round. Also changing address refs t
by hyc_symas 12y ago
How would you tell it which shared library to dlopen?
Was looking into changing the order of arguments to go the right way 'round. Also changing address refs to be PC-relative, to avoid the relocation phase. Seems pretty straightforward.
- dmytrish 12y agoI thought about `dlopen`, but did not know how to fetch it libc platform-independently (`dlopen(argv[0])` is fine on OS X, but not on Linux). Now I see that the first argument can be NULL, that approach is feasible.