dwarf_loader: Add conditional DW_FORM_implicit_const definition for older systems

This made the build fail on libbpf CI on systems where
DW_FORM_implicit_const isn't defined, so do it conditionally.

Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-02-02 09:45:37 -03:00
parent 66d12e4790
commit 8d6f06f053
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ struct strings *strings;
#define DW_TAG_call_site_parameter 0x49
#endif
#ifndef DW_FORM_implicit_const
#define DW_FORM_implicit_const 0x21
#endif
#define hashtags__fn(key) hash_64(key, HASHTAGS__BITS)
bool no_bitfield_type_recode = true;