]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Tolerate DW_AT_const_value with address form.
authorPetr Machata <pmachata@redhat.com>
Tue, 7 Apr 2009 15:56:55 +0000 (17:56 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 10 Apr 2009 13:43:26 +0000 (15:43 +0200)
src/dwarflint.c

index fb5e92fb33b51380fd21762d9216aefd6d0fe047..a751eb0a7fad125ac556ddd6306f171ada59cc5d 100644 (file)
@@ -2746,6 +2746,11 @@ reloc_target (uint8_t form, struct abbrev_attrib *at)
        case DW_AT_high_pc:
        case DW_AT_entry_pc:
          return sec_text;
+
+       case DW_AT_const_value:
+         /* Appears in some kernel modules.  It's not allowed by the
+            standard, but leave that for high-level checks.  */
+         return rel_address;
        };
 
       break;