From: Djordje Todorovic Date: Tue, 26 Sep 2017 13:43:43 +0000 (+0200) Subject: libdw: Proper handling of DW_AT_high_pc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53726025f10b8cbee717b93bafbb33bd8de4cc71;p=thirdparty%2Felfutils.git libdw: Proper handling of DW_AT_high_pc Since DWARF4 DW_AT_high_pc may be a constant. Which should be added to the DW_AT_low_pc value to get the address. Signed-off-by: Djordje Todorovic --- diff --git a/libdw/c++/dwarf-knowledge.cc b/libdw/c++/dwarf-knowledge.cc index ea80091cd..8543f9b39 100644 --- a/libdw/c++/dwarf-knowledge.cc +++ b/libdw/c++/dwarf-knowledge.cc @@ -121,10 +121,12 @@ expected_value_space (int attr, int tag) return VS(rangelistptr); case DW_AT_low_pc: - case DW_AT_high_pc: case DW_AT_entry_pc: return VS(address); + case DW_AT_high_pc: + return VS(address) | VS(constant); + case DW_AT_discr: return VS(reference); case DW_AT_discr_value: