[llvm-commits] [patch] Fix PR5094: -fstack-protector fails to link on Linux/x86

Nelson Elhage nelhage at nelhage.com
Fri Jun 18 19:47:17 PDT 2010


This patch adds a hook to TargetLowering to indicate whether the stack protector
cookie is stored in a non-standard place.

Code-diving glibc, it appears that in general it stores the stack cookie off of
the TCB header. I'm not sure if there's a more generic solution than the
address-space/offset approach in this patch for accessing the TCB header in the
generated IR.

<#part type="text/x-diff" filename="~/code/llvm/stack-protector-linux.diff" disposition=attachment description="Fix -fstack-protector on Linux/x86">
<#/part>



More information about the llvm-commits mailing list