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: [Fwd: Re: Small fix for bfd/elf.c]


On Fri, Nov 23, 2007 at 03:42:36PM -0800, Howard Chu wrote:
> --- gdb-6.7.1/bfd/elf.c	2007-08-25 06:20:41.000000000 -0700
> +++ gdb-6.7.1/bfd/elf.c.N	2007-11-22 22:09:28.884623800 -0800
> @@ -8418,6 +8418,8 @@
>  	{
>  #if BFD_HOST_64BIT_LONG
>  	  sprintf (buf, "%016lx", value);
> +#elif BFD_HOST_64BIT_LONG_LONG
> +	  sprintf (buf, "%016llx", value);
>  #else
>  	  sprintf (buf, "%08lx%08lx", _bfd_int64_high (value),
>  		   _bfd_int64_low (value));
> @@ -8446,6 +8448,8 @@
>  	{
>  #if BFD_HOST_64BIT_LONG
>  	  fprintf ((FILE *) stream, "%016lx", value);
> +#elif BFD_HOST_64BIT_LONG_LONG
> +	  fprintf ((FILE *) stream, "%016llx", value);
>  #else
>  	  fprintf ((FILE *) stream, "%08lx%08lx",
>  		   _bfd_int64_high (value), _bfd_int64_low (value));

The functions you are patching here disappeared 2007-09-12 (and it
would have been easier to discover the function name if you had
created the diff with -p).  Please check that current mainline CVS
does what you want.

-- 
Alan Modra
Australia Development Lab, IBM


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