It shouldn't even need to be an elf binary. It should be able to be any file which could serve as a command in unix, which would include things like she-bang-interpreted executables and alternative binary formats recognized by your kernel. Shouldn't there be some kind of hook into whatever e.g. bash uses? It doesn't seem like such a utility should be hard to write.