[rfa] bfd_elf_sign_extend_vma()

Andrew Cagney ac131313@cygnus.com
Fri Jun 23 01:35:00 GMT 2000
Alan Modra wrote:
> 
> On Fri, 23 Jun 2000, Andrew Cagney wrote:
> 
> > 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 :-)
> 
> No, I don't have a better suggestion.  I suppose you will just need to
> write "if (bfd_elf_sign_extend_vma () == 1)".  ie. don't write
> "... == true" as that infers the function returns a boolean.  Someone
> is sure to later decide that "if (looks_like_bool_func () == true)" is bad
> C style and rewrite it as "if (looks_like_bool_func ())"

FYI, I had one thought - add address read/write methods to the BFD
target.

	Andrew


More information about the Binutils mailing list