On Wed, 2015-04-22 at 12:50 +0200, Mark Wielaard wrote:
gcc -fsanitize=undefined pointed out that on 32bit systems the
calculation
to match the cie_offset to the cie_id could be undefined because a cie_id
could be an unsigned 64bit value while ptrdiff_t is only 32bits. Correct
the calculation to use 64bit values.
2015-03-22 Mark Wielaard <mjw(a)redhat.com>
+ * readelf.c (print_debug_frame_section): Cast start to Dwarf_Off
+ before subtracting cie_id.
That wasn't completely correct on 64bit. We also need to explicitly cast
cie_offset to Dwarf_Off. Pushed with that fixed as attached.