readelf .debug_line fix
Nick Clifton
nickc@redhat.com
Fri Nov 17 10:56:00 GMT 2000
Hi Richard,
: info.li_length is a bfd_vma; the size of the external length field
: is exactly 4. Thus using sizeof is incorrect, and in fact results
: in garbage on Alpha.
: /* Check the length of the block. */
: info.li_length = BYTE_GET (external->li_length);
: ! if (info.li_length + 4 > section->sh_size)
: ! end_of_sequence = data + info.li_length + 4;
I think it would be clearer if you used "sizeof (external->li_length)"
here instead of the constant 4.
Cheers
Nick
More information about the Binutils
mailing list