From: Eli Bendersky Date: Sat, 8 Jun 2013 15:47:56 +0000 (-0700) Subject: Add some additional GNU forms X-Git-Tag: v0.22~37^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af4e3857d5bb34031a55b58672e840e6a68043cc;p=pyelftools.git Add some additional GNU forms --- 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):