Add some additional GNU forms
authorEli Bendersky <eliben@gmail.com>
Sat, 8 Jun 2013 15:47:56 +0000 (08:47 -0700)
committerEli Bendersky <eliben@gmail.com>
Sat, 8 Jun 2013 15:47:56 +0000 (08:47 -0700)
elftools/dwarf/enums.py
elftools/dwarf/structs.py

index ee1ff7ef3c9e7230e2fccf8aadf9e283634ba9eb..65087645761dfce184b18f9e07d0cff306614c3d 100644 (file)
@@ -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,
 )
 
index 2cc281fc002ef8b57f68cde407413fd3f191b560..39e4815b2f4cf3351d761fe55bc3f4ac2fa36e21 100644 (file)
@@ -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):