aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2021-12-17 15:50:17 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-12-17 15:50:17 -0300
commit2f7d61b2bfb59427926867c886595ff28dd50607 (patch)
tree01aa7152955b923833dea7c1e4858f6adc35f530
parentc2b7b8c20877d267159ace36119f6340b9d12823 (diff)
downloadpahole-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwarves.h b/dwarves.h
index 52d162d6..2132da0e 100644
--- a/dwarves.h
+++ b/dwarves.h
@@ -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_ */