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

Nelson Elhage nelhage at nelhage.com
Mon Jul 5 11:11:46 PDT 2010


[bump] I haven't gotten an reply to this, and IRC suggested a reminder
would be appropriate.

I'm happy to rewrite this using a different approach if something else
would be more appropriate, but I'd love to see this bug fixed since it
affects my ability to compile projects I work on with clang.

-------------- 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/20100705/2422b78d/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.
> 
> _______________________________________________
> 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