PATCH: Properly dump addend in readelf
Joseph S. Myers
joseph@codesourcery.com
Sat Oct 2 12:17:00 GMT 2010
On Fri, 1 Oct 2010, H.J. Lu wrote:
> if (off < 0)
> - printf (" - %lx", - off);
> + printf (" - %llx", - off);
> else
> - printf (" + %lx", off);
> + printf (" + %llx", off);
Use of %ll formats isn't portable across hosts; MinGW needs %I64. See
BFD_VMA_FMT in bfd-in.h, for example, or print_vma in binutils/prdbg.c.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Binutils
mailing list