This is the mail archive of the binutils@sources.redhat.com 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: don't sign-extend address in ihex files


On Tue, May 13, 2003 at 03:03:09PM -0500, Jim Blandy wrote:
> Since the value of the hex_value
> macro (defined in libiberty.h) is signed

Except when char is unsigned, which is another argument in favour of
your patch.

> 2003-05-07  Jim Blandy  <jimb@redhat.com>
> 
> 	* ihex.c (NIBBLE): Make this unsigned, to avoid sign-extension
> 	when the value of a HEX2 or HEX4 application gets stored in a
> 	64-bit bfd_vma.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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