-
Notifications
You must be signed in to change notification settings - Fork 5
support static binaries #28
Comments
When we do need to cross this bridge, is there any shortcut to take? Currently the GHCI for a long time maintained their own loader... I can't recall if they ever successfully got rid of it. Here's another dumb question... is there a reason you can't hackily invoke the normal dynamic linker via ptrace from inside the execution of a statically-binary guest? |
It might be possible, I haven't spend too much time thinking of it, but we might be able to hijack tracee's PC, then redirect it to do a |
Again, fine to push down the road for now ;-). But always ok to spend a 1-3 hours and just poke at it to probe how hard it will be. |
I didn't know GHC maintained their own loader, |
likely we could try to write a static loader (way easier) to load |
The problem with is |
Currently we rely on
LD_PRELOAD
to load the--tool
library, however,LD_PRELOAD
doesn't work with static binaries, such as compiledgo
programs. It is possible to write our own mini (dynamic) loader, for static binaries only, though it wouldn't be trivial to write a dynamic loader.The text was updated successfully, but these errors were encountered: