From 58b8fd08f2d951659c3da493a22ae93b1399c9e9 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 7 Apr 2009 17:56:55 +0200 Subject: [PATCH] dwarflint: Tolerate DW_AT_const_value with address form. --- src/dwarflint.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dwarflint.c b/src/dwarflint.c index fb5e92fb3..a751eb0a7 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -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; -- 2.47.2