[LLVMdev] JIT execution engine & shadow stack

Don Boogert don.boogert at gmail.com
Sat Feb 25 11:02:31 PST 2012


I've followed the LLVM
tutorial<http://llvm.org/docs/tutorial/LangImpl4.html> to
create an execution environment for my DSL and want to enable the shadow
stack for garbage collection.  On all functions generated by my compiler I
call setGC("shadow-stack").

I end up with IR functions like this:

define float @"main float"(float %x) gc "shadow-stack" {

When I try to execute a function using
executionEngine->getPointerToFunction(myFunction) it returns the following
error: unsupported GC: shadow-stack

Am I missing some initialisation step? Is there example code of correct
shadow stack usage folk can steer me towards?

Sorry to bother the group with such a trivial questions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120225/9906f287/attachment.html>

More information about the llvm-dev mailing list