Encrypt executable through LLVM backend

Hi everyone,

I’m currently working on a project in which I would like to encrypt the output of LLVM’s linker and add a piece of code to the executable, able to decrypt and execute it. I looked around the “post-link-opts” option of the linker, but since we’re working on bytecode here, I was wondering if you guys had any experience with that.

Any ideas/comments/advices very welcome !

Thanks and regards,

Serge