diff options
author | Mark Wielaard <mjw@redhat.com> | 2012-08-24 13:54:52 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2012-08-24 15:33:55 +0200 |
commit | f5519fc244d95dc04b3e3de88644d149a36a76b6 (patch) | |
tree | 249598c2b1c7361b2f4403b376f54e490f73ba17 /libdw/dwarf_begin_elf.c | |
parent | 27751ed257ad74d1c2360c7cb8d1e0f965682773 (diff) | |
download | elfutils-f5519fc244d95dc04b3e3de88644d149a36a76b6.tar.gz |
Don't include dwz support by default.
By default the dwz multi file support is not included. This means any
DW_FORM_GNU_ref_alt or DW_FORM_GNU_strp_alt encountered in libdw will
just produce an error message. A new configure option --enable-dwz is
needed to include it for those we wish to test it. The dwz test is also
disabled by default.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libdw/dwarf_begin_elf.c')
-rw-r--r-- | libdw/dwarf_begin_elf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c index fd957701..a9c826ce 100644 --- a/libdw/dwarf_begin_elf.c +++ b/libdw/dwarf_begin_elf.c @@ -71,6 +71,7 @@ static const char dwarf_scnnames[IDX_last][17] = }; #define ndwarf_scnnames (sizeof (dwarf_scnnames) / sizeof (dwarf_scnnames[0])) +#ifdef ENABLE_DWZ internal_function int __check_build_id (Dwarf *dw, const uint8_t *build_id, const size_t id_len) { @@ -175,6 +176,7 @@ open_debugaltlink (Dwarf *result, const char *alt_name, result->alt_dwarf = NULL; return result; } +#endif /* ENABLE_DWZ */ static Dwarf * check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) @@ -219,6 +221,7 @@ check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) return NULL; } +#ifdef ENABLE_DWZ /* For dwz multifile support, ignore if it looks wrong. */ if (strcmp (scnname, ".gnu_debugaltlink") == 0) { @@ -232,7 +235,7 @@ check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) return open_debugaltlink (result, alt_name, build_id + 1, id_len); } } - +#endif /* ENABLE_DWZ */ /* Recognize the various sections. Most names start with .debug_. */ size_t cnt; |