From: Bill Wendling Date: Wed, 26 Nov 2008 19:07:40 +0000 (+0000) Subject: Update to explain how ssp and sspreq attributes override each other. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fbaa7edf9356665cfd85a3c012c4035acbc9ba30;p=oota-llvm.git Update to explain how ssp and sspreq attributes override each other. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60112 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index aa9d42fb066..e2914c0f295 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -992,16 +992,25 @@ throws the same exception) when called with the same set of arguments and global state.
ssp
-
This attribute indicates that the function should emit a stack smashing +

This attribute indicates that the function should emit a stack smashing protector. It is in the form of a "canary"—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.

+needs stack protectors or not.

-
ssp-req
-
This attribute indicates that the function should always emit a +

If a function that has an ssp attribute is inlined into a function +that doesn't have an ssp attribute, then the resulting function will +have an ssp attribute.

+ +
sspreq
+

This attribute indicates that the function should always emit a stack smashing protector. This overrides the ssp -function attribute.

+function attribute.

+ +

If a function that has an sspreq attribute is inlined into a +function that doesn't have an sspreq attribute or which has +an ssp attribute, then the resulting function will have +an sspreq attribute.