]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Allow DW_FORM_sec_offset as a form in rangeptr and lineptr
authorPetr Machata <pmachata@redhat.com>
Wed, 19 Aug 2009 11:36:50 +0000 (13:36 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:09 +0000 (14:55 +0200)
src/dwarflint.c

index a95b481fb57308eae411fa02edeccba97602f289..90a00967241fd65bada6113c77098f3ba69b32c8 100644 (file)
@@ -1725,6 +1725,7 @@ abbrev_table_load (struct read_ctx *ctx)
            {
              if (attrib_form != DW_FORM_data4
                  && attrib_form != DW_FORM_data8
+                 && attrib_form != DW_FORM_sec_offset
                  && attrib_form != DW_FORM_indirect)
                wr_error (&where,
                          ": %s with invalid form \"%s\".\n",
@@ -3029,7 +3030,8 @@ read_die_chain (struct elf_file *file,
              if (!read_ctx_read_offset (ctx, dwarf_64, &value))
                {
                cant_read:
-                 wr_error (&where, ": can't read attribute value.\n");
+                 wr_error (&where, ": can't read value of attribute %s.\n",
+                           dwarf_attr_string (it->name));
                  return -1;
                }