diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-11-26 19:07:40 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-11-26 19:07:40 +0000 |
| commit | 0f5541e4cfa620ecb52ad319cf6f01f048d89992 (patch) | |
| tree | 5838e84188211157fd59e2c0ea2fbbd65a78bc3d | |
| parent | 1e916900baee0d04a554d1ba23ca729b0e964d05 (diff) | |
| download | bcm5719-llvm-0f5541e4cfa620ecb52ad319cf6f01f048d89992.tar.gz bcm5719-llvm-0f5541e4cfa620ecb52ad319cf6f01f048d89992.zip | |
Update to explain how ssp and sspreq attributes override each other.
llvm-svn: 60112
| -rw-r--r-- | llvm/docs/LangRef.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index aa9d42fb066..e2914c0f295 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -992,16 +992,25 @@ 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 +<dd><p>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.</dd> +needs stack protectors or not.</p> -<dt><tt>ssp-req</tt></dt> -<dd>This attribute indicates that the function should <em>always</em> emit a +<p>If a function that has an <tt>ssp</tt> attribute is inlined into a function +that doesn't have an <tt>ssp</tt> attribute, then the resulting function will +have an <tt>ssp</tt> attribute.</p></dd> + +<dt><tt>sspreq</tt></dt> +<dd><p>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> +function attribute.</p> + +<p>If a function that has an <tt>sspreq</tt> attribute is inlined into a +function that doesn't have an <tt>sspreq</tt> attribute or which has +an <tt>ssp</tt> attribute, then the resulting function will have +an <tt>sspreq</tt> attribute.</p></dd> </dl> </div> |

