[LLVMdev] How to get the return address on the stack on LLVM

Anton Korobeynikov anton at korobeynikov.info
Tue Jul 26 10:12:07 PDT 2011


> In the prologue of the function, before I insert into the canary on
> the stack, I can get the return address by:
Note that there is no epilogue and prologue at IR level :)

> But it does not work this time. I cannot get the return address.
> What is problem? How can I get the return address? Thank you!
What is the problem? It seems you're getting the return address via
intrinsic call correctly.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list