diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-12-17 15:50:17 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-12-17 15:50:17 -0300 |
commit | 2f7d61b2bfb59427926867c886595ff28dd50607 (patch) | |
tree | 01aa7152955b923833dea7c1e4858f6adc35f530 | |
parent | c2b7b8c20877d267159ace36119f6340b9d12823 (diff) | |
download | pahole-2f7d61b2bfb59427926867c886595ff28dd50607.tar.gz |
core: Define DW_TAG_skeleton_unit if not available on current dwarf.h
We use this in both the dwarf_loader.c and in fprintf.c, so define it in
dwarves.h that is included in both.
Reported-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/all/YbkTAPn3EEu6BUYR@archlinux-ax161
Cc: Domenico Andreoli <domenico.andreoli@linux.com>
Cc: Douglas RAILLARD <douglas.raillard@arm.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Jan Engelhardt <jengelh@inai.de>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Matteo Croce <mcroce@microsoft.com>
Cc: Matthias Schwarzott <zzam@gentoo.org>
Cc: Yonghong Song <yhs@fb.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | dwarves.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1390,4 +1390,8 @@ extern bool no_bitfield_type_recode; extern const char tabs[]; +#ifndef DW_TAG_skeleton_unit +#define DW_TAG_skeleton_unit 0x4a +#endif + #endif /* _DWARVES_H_ */ |