Andreas Schwab
afe7a231ef
- pthread-rwlock-trylock-stalls.patch: nptl: Fix pthread_rwlock_try*lock stalls (BZ #23844) - arm-systemtap-probe-constraint.patch: arm: Use "nr" constraint for Systemtap probes (BZ #24164) - pthread-mutex-barrier.patch: Add compiler barriers around modifications of the robust mutex list for pthread_mutex_trylock (BZ #24180) - fork-handler-lock.patch: nptl: Avoid fork handler lock for async-signal-safe fork (BZ #24161) - pthread-join-probe.patch: nptl: Fix invalid Systemtap probe in pthread_join (BZ #24211) - riscv-clone-unwind.patch: RISC-V: Fix elfutils testsuite unwind failures (BZ #24040) OBS-URL: https://build.opensuse.org/request/show/677136 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=518
75 lines
3.1 KiB
Diff
75 lines
3.1 KiB
Diff
2019-02-05 Florian Weimer <fweimer@redhat.com>
|
|
|
|
[BZ #24164]
|
|
arm: Use "nr" constraint for Systemtap probes, to avoid the
|
|
compiler using memory operands for constants, due to the "o"
|
|
alternative in the default "nor" constraint.
|
|
* include/stap-probe.h [USE_STAP_PROBE]: Include
|
|
<stap-probe-machine.h>
|
|
* sysdeps/generic/stap-probe-machine.h: New file.
|
|
* sysdeps/arm/stap-probe-machine.h: Likewise.
|
|
|
|
Index: glibc-2.29/include/stap-probe.h
|
|
===================================================================
|
|
--- glibc-2.29.orig/include/stap-probe.h
|
|
+++ glibc-2.29/include/stap-probe.h
|
|
@@ -21,6 +21,7 @@
|
|
|
|
#ifdef USE_STAP_PROBE
|
|
|
|
+# include <stap-probe-machine.h>
|
|
# include <sys/sdt.h>
|
|
|
|
/* Our code uses one macro LIBC_PROBE (name, n, arg1, ..., argn).
|
|
Index: glibc-2.29/sysdeps/arm/stap-probe-machine.h
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ glibc-2.29/sysdeps/arm/stap-probe-machine.h
|
|
@@ -0,0 +1,22 @@
|
|
+/* Macros for customizing Systemtap <sys/sdt.h>. Arm version.
|
|
+ Copyright (C) 2019 Free Software Foundation, Inc.
|
|
+ This file is part of the GNU C Library.
|
|
+
|
|
+ The GNU C Library is free software; you can redistribute it and/or
|
|
+ modify it under the terms of the GNU Lesser General Public
|
|
+ License as published by the Free Software Foundation; either
|
|
+ version 2.1 of the License, or (at your option) any later version.
|
|
+
|
|
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
+ Lesser General Public License for more details.
|
|
+
|
|
+ You should have received a copy of the GNU Lesser General Public
|
|
+ License along with the GNU C Library; if not, see
|
|
+ <http://www.gnu.org/licenses/>. */
|
|
+
|
|
+/* The default "nor" constraint produces unparseable memory references
|
|
+ for constants. Omit the problematic "o" constraint. See bug 24164
|
|
+ and GCC PR 89146. */
|
|
+#define STAP_SDT_ARG_CONSTRAINT nr
|
|
Index: glibc-2.29/sysdeps/generic/stap-probe-machine.h
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ glibc-2.29/sysdeps/generic/stap-probe-machine.h
|
|
@@ -0,0 +1,19 @@
|
|
+/* Macros for customizing Systemtap <sys/sdt.h>. Generic version.
|
|
+ Copyright (C) 2019 Free Software Foundation, Inc.
|
|
+ This file is part of the GNU C Library.
|
|
+
|
|
+ The GNU C Library is free software; you can redistribute it and/or
|
|
+ modify it under the terms of the GNU Lesser General Public
|
|
+ License as published by the Free Software Foundation; either
|
|
+ version 2.1 of the License, or (at your option) any later version.
|
|
+
|
|
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
+ Lesser General Public License for more details.
|
|
+
|
|
+ You should have received a copy of the GNU Lesser General Public
|
|
+ License along with the GNU C Library; if not, see
|
|
+ <http://www.gnu.org/licenses/>. */
|
|
+
|
|
+/* By default, there are no customizations. */
|