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: i386 gas is broken


On Thu, Nov 15, 2001 at 04:04:10AM -0500, Hans-Peter Nilsson wrote:
> On Thu, 15 Nov 2001, Alan Modra wrote:
> > 2001-11-12  Nick Clifton  <nickc@cambridge.redhat.com>
> >
> > 	* frags.c (frag_grow): Use frag_make_room() to grow the
> > 	obstack.
> >
> > Reverting this seems to cure all the problems.
> 
> That change looks bogus.  IIUC, frag_make_room will make a new
> chunk when there's no room, and frag_now->fr_fix will be very
> wrong for the "growth".

The trouble is that we keep pointers to the chunk, and within the
chunk.  They all must be updated when realloc'ing.

I'll commit the revert.

Alan


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