[rfa] bfd_elf_sign_extend_vma()

Andrew Cagney ac131313@cygnus.com
Fri Jun 23 01:09:00 GMT 2000


Alan Modra wrote:

> Not quite :-)  bfd-in2.h is a generated file.  Patch bfd-in.h instead then
> run "make headers" in bfd/.

Thanks.

> > The name and return value conventions are consistent with
> > bfd_elf_get_arch_size().
> 
> Which leads to the result that non-elf returns -1, and -1 is a perfectly
> good "true" value.  Did you intend that all non-elf cases use sign
> extension?

Its fairly consistent with bfd_elf_get_addr_size() which returns the
address size or -1 on error.  If you've a better suggestion I'd be
interested?  I can't throw an error :-)

	Andrew


More information about the Binutils mailing list