<div dir="ltr">Is this <a href="https://clang.llvm.org/docs/ClangCommandLineReference.html">https://clang.llvm.org/docs/ClangCommandLineReference.html</a> what you are looking at?<br>Under the Clang source directory, `grep -r "stack-protector" docs/*` gives the following result:<br><br>  docs/ClangCommandLineReference.rst:.. option:: -fstack-protector, -fno-stack-protector<br>  docs/ClangCommandLineReference.rst:.. option:: -fstack-protector-all<br>  docs/ClangCommandLineReference.rst:.. option:: -fstack-protector-strong<br>  docs/DiagnosticsReference.rst:-Wstack-protector<div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Or you can goole with "stack protector site:<a href="http://lists.llvm.org/pipermail/cfe-dev/">http://lists.llvm.org/pipermail/cfe-dev/</a>" to find something</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">on the cfe-dev mailing list. I think that's all you can find.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">chenwj</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​</div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-28 1:20 GMT+08:00 Yaron Shragai via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote">Hello,<br><br><div dir="ltr">I see documentation out there for the levels of stack-protector in GCC: Regular protects functions that have buffers or that use alloca(), all protects all functions, strong protects functions with the conditions listed in para 3 in this doc: <a href="https://docs.google.com/document/d/1xXBH6rRZue4f296vGt9YQcuLVQHeE516stHwt8M9xyU/editAlso" target="_blank">https://docs.google.com/docume<wbr>nt/d/1xXBH6rRZue4f296vGt9YQcuL<wbr>VQHeE516stHwt8M9xyU/editAlso</a>, in GCC, stack-protector puts variables below buffers on the stack (i.e., higher up the stack).<br><br>I'm having trouble finding similar documentation for Clang. (Even if it's just an official statement that "Clang does the same thing as GCC.")<br><br>Thanks!<div><br></div></div>
</div><br></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div>