]> 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, 19 Aug 2009 11:36:50 +0000 (13:36 +0200)
src/dwarflint.c

index b342b38a763701efb97acf51d0febb7eee9b4195..60ac343ab2b9c23d8282fb33435ee34505e68dd7 100644 (file)
@@ -1726,6 +1726,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",
@@ -3030,7 +3031,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;
                }