summaryrefslogtreecommitdiffstats
path: root/libdwfl
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-11-29 01:57:53 +0100
committerMark Wielaard <mark@klomp.org>2020-11-29 01:57:53 +0100
commit609290a61d4f900c65b7e0e273981022a826e4c0 (patch)
tree3e050a74a643341f6a658180fd1f07a03f5bf871 /libdwfl
parentsegment_report_module: Inline consider_notes() into only caller (diff)
downloadelfutils-609290a61d4f900c65b7e0e273981022a826e4c0.tar.gz
elfutils-609290a61d4f900c65b7e0e273981022a826e4c0.tar.bz2
elfutils-609290a61d4f900c65b7e0e273981022a826e4c0.tar.xz
libdwfl: Use 64bit GElf_Addr instead of size_t to calculate address.
size_t is too small on 32 bit systems to analyze a 64 bit core file. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdwfl')
-rw-r--r--libdwfl/ChangeLog5
-rw-r--r--libdwfl/dwfl_segment_report_module.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index a5cffc49..67a4d743 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
12020-11-28 Mark Wielaard <mark@klomp.org>
2
3 * dwfl_segment_report_module.c (dwfl_segment_report_module):
4 Use GElf_Addr to calculate note_vaddr instead of size_t.
5
12020-11-26 Timm Bäder <tbaeder@redhat.com> 62020-11-26 Timm Bäder <tbaeder@redhat.com>
2 7
3 * dwfl_segment_report_module.c (dwfl_segment_report_module): 8 * dwfl_segment_report_module.c (dwfl_segment_report_module):
diff --git a/libdwfl/dwfl_segment_report_module.c b/libdwfl/dwfl_segment_report_module.c
index 8d99e3bb..ee9cfa2e 100644
--- a/libdwfl/dwfl_segment_report_module.c
+++ b/libdwfl/dwfl_segment_report_module.c
@@ -501,7 +501,7 @@ dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name,
501 501
502 /* We calculate from the p_offset of the note segment, 502 /* We calculate from the p_offset of the note segment,
503 because we don't yet know the bias for its p_vaddr. */ 503 because we don't yet know the bias for its p_vaddr. */
504 const size_t note_vaddr = start + offset; 504 const GElf_Addr note_vaddr = start + offset;
505 void *data; 505 void *data;
506 size_t data_size; 506 size_t data_size;
507 if (read_portion (&read_state, &data, &data_size, 507 if (read_portion (&read_state, &data, &data_size,