summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/0002-musl-libs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0002-musl-libs.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/0002-musl-libs.patch24
1 files changed, 11 insertions, 13 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0002-musl-libs.patch b/meta/recipes-devtools/elfutils/files/0002-musl-libs.patch
index 894e46c3c4..c6f766f680 100644
--- a/meta/recipes-devtools/elfutils/files/0002-musl-libs.patch
+++ b/meta/recipes-devtools/elfutils/files/0002-musl-libs.patch
@@ -1,4 +1,4 @@
1From 2e1f8ca0b67c1d1991c14d509938c347e09bae94 Mon Sep 17 00:00:00 2001 1From f4ca9db9d38f865505322595a8a1e8f69d5bb87c Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 23 Aug 2019 10:18:47 +0800 3Date: Fri, 23 Aug 2019 10:18:47 +0800
4Subject: [PATCH] musl-libs 4Subject: [PATCH] musl-libs
@@ -21,8 +21,8 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
21 lib/libeu.h | 1 + 21 lib/libeu.h | 1 +
22 libdwfl/dwfl_error.c | 9 +++++++++ 22 libdwfl/dwfl_error.c | 9 +++++++++
23 libdwfl/linux-kernel-modules.c | 1 + 23 libdwfl/linux-kernel-modules.c | 1 +
24 libelf/elf.h | 9 ++++++--- 24 libelf/elf.h | 7 +++++++
25 6 files changed, 44 insertions(+), 4 deletions(-) 25 6 files changed, 45 insertions(+), 1 deletion(-)
26 create mode 100644 lib/error.h 26 create mode 100644 lib/error.h
27 27
28diff --git a/lib/error.h b/lib/error.h 28diff --git a/lib/error.h b/lib/error.h
@@ -104,7 +104,7 @@ index 7bcf61c..11dcc8b 100644
104 return elf_errmsg (error & 0xffff); 104 return elf_errmsg (error & 0xffff);
105 case OTHER_ERROR (LIBDW): 105 case OTHER_ERROR (LIBDW):
106diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c 106diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
107index 0434f1e..5afaee8 100644 107index 6edb27f..f331e3c 100644
108--- a/libdwfl/linux-kernel-modules.c 108--- a/libdwfl/linux-kernel-modules.c
109+++ b/libdwfl/linux-kernel-modules.c 109+++ b/libdwfl/linux-kernel-modules.c
110@@ -50,6 +50,7 @@ 110@@ -50,6 +50,7 @@
@@ -116,26 +116,24 @@ index 0434f1e..5afaee8 100644
116 /* If fts.h is included before config.h, its indirect inclusions may not 116 /* If fts.h is included before config.h, its indirect inclusions may not
117 give us the right LFS aliases of these functions, so map them manually. */ 117 give us the right LFS aliases of these functions, so map them manually. */
118diff --git a/libelf/elf.h b/libelf/elf.h 118diff --git a/libelf/elf.h b/libelf/elf.h
119index 197b557..8e5b94c 100644 119index 6439c1a..a87c589 100644
120--- a/libelf/elf.h 120--- a/libelf/elf.h
121+++ b/libelf/elf.h 121+++ b/libelf/elf.h
122@@ -21,7 +21,9 @@ 122@@ -19,6 +19,10 @@
123 #ifndef _ELF_H
124 #define _ELF_H 1
123 125
124 #include <features.h>
125
126-__BEGIN_DECLS
127+#ifdef __cplusplus 126+#ifdef __cplusplus
128+extern "C" { 127+extern "C" {
129+#endif 128+#endif
130 129+
131 /* Standard ELF types. */ 130 /* Standard ELF types. */
132 131
133@@ -4103,6 +4105,7 @@ enum 132 #include <stdint.h>
133@@ -4101,4 +4105,7 @@ enum
134 #define R_ARC_TLS_LE_S9 0x4a 134 #define R_ARC_TLS_LE_S9 0x4a
135 #define R_ARC_TLS_LE_32 0x4b 135 #define R_ARC_TLS_LE_32 0x4b
136 136
137-__END_DECLS
138-
139+#ifdef __cplusplus 137+#ifdef __cplusplus
140+} 138+}
141+#endif 139+#endif