This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Properly dump addend in readelf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]