aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/0001-define-EM_AARCH64.patch
blob: c9fb2686876db5af6b7804bf2f65e8a958adc581 (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
28
29
30
31
32
33
34
35
[PATCH] define EM_AARCH64

Upstream-Status: Submitted [RPM5 maintainer]

EM_AARCH64 maybe not be defined due to old version elf.h, and lead to
that debugedit can not work on aarch64 elf object files, since there is
no other dependence, except these two macro, define them to make
debugedit work on aarch64 elf files.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 tools/debugedit.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/debugedit.c b/tools/debugedit.c
index de693ed..d16a641 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -35,6 +35,13 @@
 
 #include <gelf.h>
 
+#ifndef EM_AARCH64
+#define EM_AARCH64      183             /* ARM AARCH64 */
+#endif
+#ifndef R_AARCH64_ABS32
+#define R_AARCH64_ABS32 258
+#endif 
+
 /* some defines taken from the dwarf standard */
 
 #define DW_TAG_compile_unit	0x11
-- 
1.9.1