This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: comparison of 'where' in cache.c
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jeff Muizelaar <muizelaar at rogers dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 11 Dec 2003 14:23:39 +1030
- Subject: Re: comparison of 'where' in cache.c
- References: <3FD7E7DA.7060703@rogers.com>
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