[Gc] boehm-gc breakage between binutils 2.16.1 and 2.17 on FreeBSD[7.2]

Boehm, Hans hans.boehm at hp.com
Thu Sep 3 11:00:40 PDT 2009

Thanks.  Committed.  Also tested on a couple of Linux systems, just in case.

As far as I can tell, our mail system also has trouble with this type of attachment.
The attachment was fine on gmane.org, but it seems to be corrupted in two slightly
different ways in the "official" archives and in the mail I received.  My guess is
that it was somehow misidentified as a potential executable and altered to prevent
malware spread.  I'm unfortunately not an expert on mail protocols.  But the next time this comes up, you might try a .diff or .patch extension and see if that avoids the problem.

In the meantime, if anyone else wants to apply this patch themselves, please use the gmane.org version, which is the one I applied.


> -----Original Message-----
> From: Loren James Rittle [mailto:rittle at latour.labs.mot.com] 
> Sent: Wednesday, September 02, 2009 8:51 AM
> To: Boehm, Hans
> Cc: gc at napali.hpl.hp.com
> Subject: Re: [Gc] boehm-gc breakage between binutils 2.16.1 
> and 2.17 on FreeBSD[7.2]
> In article 
> <238A96A773B3934685A7269CC8A8D042577ADDC667 at GVW0436EXB.america
> s.hpqcorp.net>,
> "Boehm, Hans"<hans.boehm at hp.com> writes:
> > I think we're nearing a consensus that this patch is 
> probably the best 
> > we can do.  Looking at the release history, it looks like 
> FreeBSD 7 is 
> > about a year and a half old?
> Indeed.
> > Thus hopefully most people still running something earlier 
> are those 
> > who never update anything, and thus won't update the GC either?
> Actually, it is quite fine if someone running FreeBSD6 or 
> before updates the GC alone (with or without my proposed 
> patch).  They do not see the problem or require any fix.  The 
> problem is if someone running a FreeBSD system without 
> dl_iterate_phdr support updates binutils from the system copy 
> (based on GNU 2.15 for many releases) to GNU 2.17 or anything 
> after that.  After that, the installed GC or a newly 
> installed GC, at the versions that I have tested, will be 
> broken since _DYNAMIC is not formed as described in the FIXME 
> comment about quirks of older GNU binutils.  But we can't 
> really fix that problem in GC since FreeBSD before 7.0 does 
> not have dl_iterate_phdr.  Maybe there is some other 
> bug/reason why _DYNAMIC is not created "properly" when using 
> binutils 2.17+, but I have not fully investigated that angle 
> (nor can I at this time).
> The problem might also occur if the base FreeBSD system ever 
> updates binutils to 2.17+ without reinstating _DYNAMIC creation.
> > Interestingly, the posted patch seems to have arrived here 
> with some 
> > formatting problems, e.g.
> > Nonetheless, it's probably better to send patches as attachments.
> OK, will resend as an attachment.  pl3 is what I will now 
> submit against the 6.6 copy in gcc.  pl4 is the version 
> against 7.2alpha2.
> Regards,
> Loren
> 2009-09-02  Loren J. Rittle  <ljrittle at acm.org>
> 	* dyn_load.c (HAVE_DL_ITERATE_PHDR): Break definition from use.
> 	Define for FreeBSD 7.0+.

More information about the Gc mailing list