readelf: Add base to offsets in format_dwarf_addr for debug_loc/ranges.
authorMark Wielaard <mjw@redhat.com>
Fri, 18 Jan 2013 21:19:08 +0000 (22:19 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 6 Feb 2013 22:25:39 +0000 (23:25 +0100)
commit2425710bc1dffdc69ca1d82fe9d979d8005cefa6
tree99781553acbdcc831ead696dc30b4051edb4545b
parent8447637a4e32b0c19177ba23cd58548b990bdc17
readelf: Add base to offsets in format_dwarf_addr for debug_loc/ranges.

Collect the base address of the CU while creating the listptr_tables
and use them when printing debug ranges and location entries with
format_dwarf_addr ().

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c