SHA256
1
0
forked from pool/glibc
glibc/powerpc-sys-ptrace-undefine-macros.patch
Andreas Schwab ef65d0fef2 Accepting request 590321 from home:Andreas_Schwab:Factory
- pkey-get-reserved-name.patch: Linux: use reserved name __key in pkey_get
  (BZ #22797)
- aarch64-sys-ptrace-update.patch: linux/aarch64: sync sys/ptrace.h with
  Linux 4.15 (BZ #22433)
- powerpc-sys-ptrace-undefine-macros.patch: powerpc: Undefine Linux ptrace
  macros that conflict with __ptrace_request
- powerpc-sys-ptrace-update.patch: linux/powerpc: sync sys/ptrace.h with
  Linux 4.15 (BZ #22433, BZ #22807)
- netgroup-cache-keys.patch: Fix netgroup cache keys (BZ #22342)
- i386-sigaction-sa-restorer.patch: i386: Fix i386 sigaction sa_restorer
  initialization (BZ #21269)
- riscv-tls-init.patch: RISC-V: Do not initialize $gp in TLS macros
- riscv-fmax-fmin-nan.patch: RISC-V: fmax/fmin: Handle signalling NaNs
  correctly (BZ #22884)

OBS-URL: https://build.opensuse.org/request/show/590321
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=499
2018-03-22 13:50:37 +00:00

60 lines
1.7 KiB
Diff

2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
macros used in __ptrace_request.
Index: glibc-2.27/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
===================================================================
--- glibc-2.27.orig/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
+++ glibc-2.27/sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
@@ -24,6 +24,49 @@
__BEGIN_DECLS
+#if defined _LINUX_PTRACE_H || defined _ASM_POWERPC_PTRACE_H
+/* Do not let Linux headers macros interfere with enum __ptrace_request. */
+# undef PTRACE_ATTACH
+# undef PTRACE_CONT
+# undef PTRACE_DETACH
+# undef PTRACE_GET_DEBUGREG
+# undef PTRACE_GETEVENTMSG
+# undef PTRACE_GETEVRREGS
+# undef PTRACE_GETFPREGS
+# undef PTRACE_GETREGS
+# undef PTRACE_GETREGS64
+# undef PTRACE_GETREGSET
+# undef PTRACE_GETSIGINFO
+# undef PTRACE_GETSIGMASK
+# undef PTRACE_GETVRREGS
+# undef PTRACE_GETVSRREGS
+# undef PTRACE_INTERRUPT
+# undef PTRACE_KILL
+# undef PTRACE_LISTEN
+# undef PTRACE_PEEKDATA
+# undef PTRACE_PEEKSIGINFO
+# undef PTRACE_PEEKTEXT
+# undef PTRACE_POKEDATA
+# undef PTRACE_POKETEXT
+# undef PTRACE_SECCOMP_GET_FILTER
+# undef PTRACE_SEIZE
+# undef PTRACE_SET_DEBUGREG
+# undef PTRACE_SETEVRREGS
+# undef PTRACE_SETFPREGS
+# undef PTRACE_SETOPTIONS
+# undef PTRACE_SETREGS
+# undef PTRACE_SETREGS64
+# undef PTRACE_SETREGSET
+# undef PTRACE_SETSIGINFO
+# undef PTRACE_SETSIGMASK
+# undef PTRACE_SETVRREGS
+# undef PTRACE_SETVSRREGS
+# undef PTRACE_SINGLEBLOCK
+# undef PTRACE_SINGLESTEP
+# undef PTRACE_SYSCALL
+# undef PTRACE_TRACEME
+#endif
+
/* Type of the REQUEST argument to `ptrace.' */
enum __ptrace_request
{