[PATCH] D129346: [X86] [Linux build][Stack Protector] Support for -mstack-protector-guard-symbol

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 23:37:52 PDT 2022


xiangzhangllvm created this revision.
xiangzhangllvm added reviewers: nickdesaulniers, pengfei, LuoYuanke.
Herald added subscribers: jsji, hiraditya.
Herald added a project: All.
xiangzhangllvm requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Add option -mstack-protector-guard-symbol=symbol  to
use the given symbol for addressing the stack-protector guard

via https://lore.kernel.org/lkml/c0ff7dba14041c7e5d1cae5d4df052f03759bef3.1613243844.git.luto@kernel.org/, the Linux kernel is looking to use the flags:
-mstack-protector-guard-symbol=__stack_chk_guard

issues:  https://github.com/llvm/llvm-project/issues/48553


https://reviews.llvm.org/D129346

Files:
  clang/docs/ClangCommandLineReference.rst
  clang/include/clang/Basic/CodeGenOptions.h
  clang/include/clang/Driver/Options.td
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/stack-protector-guard.c
  llvm/include/llvm/IR/Module.h
  llvm/lib/IR/Module.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/stack-protector-3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129346.443145.patch
Type: text/x-patch
Size: 10315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220708/9641625e/attachment.bin>


More information about the llvm-commits mailing list