Hi!

GCC 7 and trunk apparently doesn't bootstrap on s390x-linux
against old glibc like 2.12 (in RHEL 6), the problem is that before
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cbff0d9689c4d68578b6a4f0a17807232506ea27
PTRACE_GETREGSET etc. wasn't defined in <sys/ptrace.h>.

Fixed thusly, bootstrapped/regtested on {x86_64,i686,s390x}-linux,
committed to trunk, queued for 7.3, 6.x didn't have s390x sanitizer
support.

2017-08-07  Jakub Jelinek  <ja...@redhat.com>

        * include/system/sys/ptrace.h: New file.

--- libsanitizer/include/system/sys/ptrace.h.jj 2017-08-04 09:31:11.129824715 
+0200
+++ libsanitizer/include/system/sys/ptrace.h    2017-08-04 09:34:36.286450409 
+0200
@@ -0,0 +1,7 @@
+#include_next <sys/ptrace.h>
+#ifndef PTRACE_GETREGSET
+/* glibc before
+   
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cbff0d9689c4d68578b6a4f0a17807232506ea27
+   doesn't define PTRACE_GETREGSET.  */
+#define PTRACE_GETREGSET 0x4204
+#endif

        Jakub

Reply via email to