[PATCH] D40622: XOR the frame pointer with the stack cookie when protecting the stack

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 13:52:37 PST 2017


rnk created this revision.
Herald added subscribers: JDevlieghere, hiraditya.

This strengthens the guard and matches MSVC.


https://reviews.llvm.org/D40622

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/X86/stack-protector-msvc.ll
  llvm/test/CodeGen/X86/stack-protector.ll
  llvm/test/DebugInfo/COFF/fpo-stack-protect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40622.124812.patch
Type: text/x-patch
Size: 28446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171129/5b4b5c3d/attachment.bin>


More information about the llvm-commits mailing list