]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdwfl: Use 64bit GElf_Addr instead of size_t to calculate address.
authorMark Wielaard <mark@klomp.org>
Sun, 29 Nov 2020 00:57:53 +0000 (01:57 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 29 Nov 2020 00:57:53 +0000 (01:57 +0100)
size_t is too small on 32 bit systems to analyze a 64 bit core file.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/dwfl_segment_report_module.c

index a5cffc496a7b60c337544731554345e9f31a9dcd..67a4d743047a49bc0868d5cc04043b8eb951afa7 100644 (file)
@@ -1,3 +1,8 @@
+2020-11-28  Mark Wielaard  <mark@klomp.org>
+
+       * dwfl_segment_report_module.c (dwfl_segment_report_module):
+       Use GElf_Addr to calculate note_vaddr instead of size_t.
+
 2020-11-26  Timm Bäder  <tbaeder@redhat.com>
 
        * dwfl_segment_report_module.c (dwfl_segment_report_module):
index 8d99e3bbc02163d1678d1557754ee5aba1f0a592..ee9cfa2e5bc2da6379d397567f0ca8af1e35435d 100644 (file)
@@ -501,7 +501,7 @@ dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name,
 
               /* We calculate from the p_offset of the note segment,
                because we don't yet know the bias for its p_vaddr.  */
-              const size_t note_vaddr = start + offset;
+              const GElf_Addr note_vaddr = start + offset;
               void *data;
               size_t data_size;
               if (read_portion (&read_state, &data, &data_size,