[PATCH] fix GCC 4.9 libsanitizer build with old glibc

Kostya Serebryany kcc at google.com
Tue May 6 00:44:54 PDT 2014


Submitted, http://llvm.org/viewvc/llvm-project?view=revision&revision=208066
Thanks!

--kcc


On Thu, May 1, 2014 at 6:42 PM, Sandra Loosemore <sandra at codesourcery.com>wrote:

> As reported in GCC PR 61021....
>
> We build a native i686-pc-linux-gnu toolchain against a relatively ancient
> sysroot (glibc 2.4) so that the resulting binaries will work on a variety
> of  older GNU/Linux distros.  GCC 4.9 is now failing to build this
> configuration due to references to undefined symbols PTRACE_GETSIGINFO and
> PTRACE_SETSIGINFO in libsanitizer.  The attached patch is sufficient to get
> it to at least build again, and it's consistent with the way
> PTRACE_GETREGSET and PTRACE_SETREGSET are being handled.
>
> If this is OK, can somebody please check it in, so the changes will
> eventually propagate back to GCC?
>
> -Sandra
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140506/3205c886/attachment.html>


More information about the llvm-commits mailing list