3 ms·
This is different though, because it's modifying the executable to load the new lib, right? If you're modifying the executable anyway, why not just patch it di
by doix 2y ago
This is different though, because it's modifying the executable to load the new lib, right?
If you're modifying the executable anyway, why not just patch it directly instead of going through these hoops?
The equivalent on Linux would be setting LD_PRELOAD and putting your .so file there. A quick Google search seems to imply that the OSX equivalent is DYLD_INSERT_LIBRARIES but I have no idea how similar they are.