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

Nelson Elhage nelhage at nelhage.com
Fri Jun 18 20:37:58 PDT 2010


I'm sorry, looks like that didn't actually get attached. Let's try that
again.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stack-protector-linux.diff
Type: text/x-diff
Size: 8055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100618/f09bb5c1/attachment.diff>
-------------- next part --------------


On Fri, 18 Jun 2010 22:47:17 -0400 (EDT), Nelson Elhage <nelhage at nelhage.com> wrote:
> 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.
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stack-protector-linux.diff
Type: text/x-diff
Size: 8055 bytes
Desc: Fix -fstack-protector on Linux/x86
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100618/f09bb5c1/attachment-0001.diff>
-------------- next part --------------
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 


More information about the llvm-commits mailing list