]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Support DW_FORM_flag_present
authorPetr Machata <pmachata@redhat.com>
Wed, 19 Aug 2009 18:25:54 +0000 (20:25 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 19 Aug 2009 18:25:54 +0000 (20:25 +0200)
src/dwarflint.c

index 4cd6b562bd457f487ed81a086d98f49683a3e51c..7c0f3cd067acb3c6cc45f97a90b02aafb1492097 100644 (file)
@@ -2614,6 +2614,7 @@ reloc_target (uint8_t form, struct abbrev_attrib *at)
     case DW_FORM_sdata:
     case DW_FORM_udata:
     case DW_FORM_flag:
+    case DW_FORM_flag_present:
     case DW_FORM_ref_udata:
       assert (!"Can't be relocated!");
 
@@ -3071,6 +3072,10 @@ read_die_chain (struct elf_file *file,
                return -1;
              break;
 
+           case DW_FORM_flag_present:
+             value = 1;
+             break;
+
            case DW_FORM_ref1:
              value_check_cb = check_die_ref_local;
            case DW_FORM_flag: