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>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-12-17 15:50:17 -03:00
parent c2b7b8c208
commit 2f7d61b2bf

View File

@ -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_ */