This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix s390x-linux bootstrap against glibc 2.12


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]