libdwfl: Make dwfl_segment_report_module aware of maximum Elf size
authorMark Wielaard <mark@klomp.org>
Fri, 17 Dec 2021 16:43:19 +0000 (17:43 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 18 Dec 2021 01:24:28 +0000 (02:24 +0100)
commit3831c0b2c2334b129a9d04f12dc7549db412d3bd
tree2dba90d0ad60dc775c05bb5d043c8fa29a18c6e0
parentb16ff8198f91714048faaaed2a9b4e6801293226
libdwfl: Make dwfl_segment_report_module aware of maximum Elf size

At the end of dwfl_segment_report_module we might try to read in
the whole contents described by a core file. To do this we first
allocate a zeroed block of memory that is as big as possible. The
core file however may describe much more loaded data than is actually
available in the Elf image. So pass the maximum size so we can
limit the amount of memory we reserve.

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