summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-13 01:02:51 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-13 01:02:51 +0000
commit31359bab86e8fad55a7c0643a9984eb8b3b59d24 (patch)
tree3219e562a6abec9d6b21c80d39d401410ef83e8e /docs
parente9e6bdf27fca46dc9eca2ebdf73e03747d1859ab (diff)
downloadllvm-31359bab86e8fad55a7c0643a9984eb8b3b59d24.tar.gz
llvm-31359bab86e8fad55a7c0643a9984eb8b3b59d24.tar.bz2
llvm-31359bab86e8fad55a7c0643a9984eb8b3b59d24.tar.xz
Update docs for ssp and sspreq function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index f1869c31d9..221cc492eb 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -985,6 +985,18 @@ caller functions. It may dereference pointer arguments and read state that may
be set in the caller. A readonly function always returns the same value (or
throws the same exception) when called with the same set of arguments and global
state.</dd>
+
+<dt><tt><a name="ssp">ssp</a></tt></dt>
+<dd>This attribute indicates that the function should emit a stack smashing
+protector. It is in the form of a "canary"&mdash;a random value placed on the
+stack before the local variables that's checked upon return from the function to
+see if it has been overwritten. A heuristic is used to determine if a function
+needs stack protectors or not.</dd>
+
+<dt><tt>ssp-req</tt></dt>
+<dd>This attribute indicates that the function should <em>always</em> emit a
+stack smashing protector. This overrides the <tt><a href="#ssp">ssp</a></tt>
+function attribute.</dd>
</dl>
</div>