aboutsummaryrefslogtreecommitdiff
path: root/depends/patches/systemtap/remove_SDT_ASM_SECTION_AUTOGROUP_SUPPORT_check.patch
blob: c115bc43e81f201072725e5807e04d6d126be502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Remove _SDT_ASM_SECTION_AUTOGROUP_SUPPORT check

We assume that the assembler supports "?" in .pushsection directives.
This enables us to skip configure and make.

See https://github.com/bitcoin/bitcoin/issues/23297.

diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
index ca0162b..f96e0ee 100644
--- a/includes/sys/sdt.h
+++ b/includes/sys/sdt.h
@@ -241,12 +241,10 @@ __extension__ extern unsigned long long __sdt_unsp;
    nice with code in COMDAT sections, which comes up in C++ code.
    Without that assembler support, some combinations of probe placements
    in certain kinds of C++ code may produce link-time errors.  */
-#include "sdt-config.h"
-#if _SDT_ASM_SECTION_AUTOGROUP_SUPPORT
+/* PATCH: We assume that the assembler supports the feature. This
+   enables us to skip configure and make. In turn, this means we
+   require fewer dependencies and have shorter depend build times. */
 # define _SDT_ASM_AUTOGROUP "?"
-#else
-# define _SDT_ASM_AUTOGROUP ""
-#endif
 
 #define _SDT_DEF_MACROS							     \
 	_SDT_ASM_1(.altmacro)						     \