From af4e3857d5bb34031a55b58672e840e6a68043cc Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 8 Jun 2013 08:47:56 -0700 Subject: [PATCH] Add some additional GNU forms --- elftools/dwarf/enums.py | 2 ++ elftools/dwarf/structs.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/elftools/dwarf/enums.py b/elftools/dwarf/enums.py index ee1ff7e..6508764 100644 --- a/elftools/dwarf/enums.py +++ b/elftools/dwarf/enums.py @@ -270,6 +270,8 @@ ENUM_DW_FORM = dict( DW_FORM_flag_present = 0x19, DW_FORM_ref_sig8 = 0x20, + DW_FORM_GNU_strp_alt = 0x1f21, + DW_FORM_GNU_ref_alt = 0x1f20, _default_ = Pass, ) diff --git a/elftools/dwarf/structs.py b/elftools/dwarf/structs.py index 2cc281f..39e4815 100644 --- a/elftools/dwarf/structs.py +++ b/elftools/dwarf/structs.py @@ -204,6 +204,10 @@ class DWARFStructs(object): DW_FORM_sec_offset = self.Dwarf_offset(''), DW_FORM_exprloc = self._make_block_struct(self.Dwarf_uleb128), DW_FORM_ref_sig8 = self.Dwarf_offset(''), + + DW_FORM_GNU_strp_alt=self.Dwarf_offset(''), + DW_FORM_GNU_ref_alt=self.Dwarf_offset(''), + DW_AT_GNU_all_call_sites=self.Dwarf_uleb128(''), ) def _create_lineprog_header(self): -- 2.30.2