You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to write new pass using llvm.ptrauth.auth and it seems work well in opt, but when I try to cross compile the result IR with LLC, it generates the crash.
Here is the compile command: llc-14 --march=aarch64 output/main.opt.bc and here is callstack:
Yes, ptrauth support is not fully functional in main (and even less so on llvm-14). However, the full support is already in the apple/llvm-project fork, and I'm maintaining a work-in-progress branch on top of (non-forked llvm-project) main.
If you haven't looked at that yet, I'd suggest you go over the changes there, as well as the llvm-dev RFC linked in the PR above, which goes into the overall design (for instance, instead of call void %inttoptr6(), which drastically weakens the security model, you should use the ptrauth operand bundle)
I try to write new pass using
llvm.ptrauth.auth
and it seems work well in opt, but when I try to cross compile the result IR with LLC, it generates the crash.Here is the compile command:
llc-14 --march=aarch64 output/main.opt.bc
and here is callstack:Here is buggy IR:
Am I doing something wrong on using llvm.ptrauth API? Or is it real LLVM's problem?
The text was updated successfully, but these errors were encountered: