summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_getlocation.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-11-24 19:29:57 +0100
committerMark Wielaard <mark@klomp.org>2018-05-29 12:18:43 +0200
commit7cfe2c16f9ddaa7478a2d97dd893c6b89080020a (patch)
treed3ceaf787ee03c7cb5f22728b1ddd92bca56fdb2 /libdw/dwarf_getlocation.c
parent263dbe8ca17f66baa184f489530eb92afa15adfe (diff)
readelf: Handle .debug_loclists.
The new DWARF5 .debug_loclists sections are like .debug_rnglists, but plus locations. For Split Dwarf GCC generates the .debug_loclists fully in the split .dwo file. Any references to addresses need to be resolved through the skeleton .debug_addr section. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r--libdw/dwarf_getlocation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index 0e7115f8..d4b8effe 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -87,7 +87,7 @@ attr_ok (Dwarf_Attribute *attr)
break;
default:
- __libdw_seterrno (DWARF_E_NO_LOCLIST);
+ __libdw_seterrno (DWARF_E_NO_LOC_VALUE);
return false;
}
@@ -700,7 +700,7 @@ initial_offset (Dwarf_Attribute *attr, ptrdiff_t *offset)
Dwarf_Word start_offset;
if (__libdw_formptr (attr, secidx,
- DWARF_E_NO_LOCLIST,
+ DWARF_E_NO_DEBUG_LOC,
NULL, &start_offset) == NULL)
return -1;