This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix s390x-linux bootstrap against glibc 2.12
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 Aug 2017 10:39:03 +0200
- Subject: [PATCH] Fix s390x-linux bootstrap against glibc 2.12
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jakub at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 60CB3883BC
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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 <jakub@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