Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | [PATCH] define EM_AARCH64 |
| 2 | |
| 3 | Upstream-Status: Submitted [RPM5 maintainer] |
| 4 | |
| 5 | EM_AARCH64 maybe not be defined due to old version elf.h, and lead to |
| 6 | that debugedit can not work on aarch64 elf object files, since there is |
| 7 | no other dependence, except these two macro, define them to make |
| 8 | debugedit work on aarch64 elf files. |
| 9 | |
| 10 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 11 | --- |
| 12 | tools/debugedit.c | 7 +++++++ |
| 13 | 1 file changed, 7 insertions(+) |
| 14 | |
| 15 | diff --git a/tools/debugedit.c b/tools/debugedit.c |
| 16 | index de693ed..d16a641 100644 |
| 17 | --- a/tools/debugedit.c |
| 18 | +++ b/tools/debugedit.c |
| 19 | @@ -35,6 +35,13 @@ |
| 20 | |
| 21 | #include <gelf.h> |
| 22 | |
| 23 | +#ifndef EM_AARCH64 |
| 24 | +#define EM_AARCH64 183 /* ARM AARCH64 */ |
| 25 | +#endif |
| 26 | +#ifndef R_AARCH64_ABS32 |
| 27 | +#define R_AARCH64_ABS32 258 |
| 28 | +#endif |
| 29 | + |
| 30 | /* some defines taken from the dwarf standard */ |
| 31 | |
| 32 | #define DW_TAG_compile_unit 0x11 |
| 33 | -- |
| 34 | 1.9.1 |
| 35 | |