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: Is glibc branch now frozen?


On Thu, Jun 05, 2003 at 11:02:58AM -0400, Daniel Jacobowitz wrote:
> OK, I'll bite.
> 
> Can you give an example where this patch makes any difference?  It
> appears that h should never, ever exceed 0xffffffff anyway.

Say "\xf\xf\xf\xf\xf\xf\xf ".
If h before entering a loop round is >= 0xffffff1 and
(h << 4) + ch >= 0xffffffffL.

> > 2003-05-07  Andrew Haley  <aph@redhat.com>
> > 
> > 	* elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
> > 
> > --- bfd/elf.c~  2003-05-06 18:15:30.000000000 +0100
> > +++ bfd/elf.c   2003-05-07 17:50:52.000000000 +0100
> > @@ -265,7 +265,7 @@
> >           h ^= g;
> >         }
> >      }
> > -  return h;
> > +  return h & 0xffffffff;
> >  }
> >  
> >  /* Read a specified number of bytes at a specified offset in an ELF
> > 

	Jakub


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