[PATCH] D37405: [safestack] Experimental mode where stack pointer is accessed with a function call.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 14:45:00 PST 2018


eugenis updated this revision to Diff 130036.
eugenis added a comment.

An attempt to inline the safestack accessor function.

To use, add -mllvm -safestack-pointer-address-inline=1.
Function must be called __safestack_pointer_address_inline.
"__attribute__((used)) static" is recommended so the function is not discarded early.


https://reviews.llvm.org/D37405

Files:
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  compiler-rt/lib/safestack/CMakeLists.txt
  compiler-rt/lib/safestack/safestack.cc
  compiler-rt/lib/safestack/safestack_customcc.S
  llvm/lib/CodeGen/SafeStack.cpp
  llvm/test/CodeGen/X86/safestack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37405.130036.patch
Type: text/x-patch
Size: 7273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180116/c3b3dcc0/attachment.bin>


More information about the llvm-commits mailing list