comparison of 'where' in cache.c

Alan Modra amodra@bigpond.net.au
Thu Dec 11 03:53:00 GMT 2003


On Wed, Dec 10, 2003 at 10:43:22PM -0500, Jeff Muizelaar wrote:
> Anybody know what the intention of this code from 
> bfd_cache_lookup_worker in cache.c:357 is:
> 
>      if (abfd->where != (unsigned long) abfd->where)
>        return NULL;
> 
> As it currently stands, it doesn't seem to do anything at all.

"where" is a "bfd_vma".  A 64 bit libbfd on a 32 bit host will use
"unsigned long long" for "bfd_vma".  So we're checking that the
file position can be reached using fseek.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list