[PATCH] D68720: Support -fstack-clash-protection for x86

serge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 01:03:49 PST 2020


serge-sans-paille added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3009-3010
+
+  if (!EffectiveTriple.isOSLinux())
+    return;
+
----------------
emaste wrote:
> Is there anything OS-dependent here?
> 
> I plan to add `EffectiveTriple.isOSFreeBSD()` to FreeBSD-s in-tree Clang
> https://reviews.freebsd.org/D27366
> and intend to upstream the change (with a test), but should we just remove the OS test completely?
According to https://blog.qualys.com/vulnerabilities-research/2017/06/19/the-stack-clash, stack clash impacts

> Linux, OpenBSD, NetBSD, FreeBSD and Solaris

We should probably enlarge the test to these platforms. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68720/new/

https://reviews.llvm.org/D68720



More information about the cfe-commits mailing list