From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32648 invoked by alias); 14 Apr 2006 22:00:31 -0000 Received: (qmail 32640 invoked by uid 22791); 14 Apr 2006 22:00:30 -0000 X-Spam-Check-By: sourceware.org Received: from smtp111.sbc.mail.re2.yahoo.com (HELO smtp111.sbc.mail.re2.yahoo.com) (68.142.229.94) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 14 Apr 2006 22:00:29 +0000 Received: (qmail 90253 invoked from network); 14 Apr 2006 22:00:27 -0000 Received: from unknown (HELO lucon.org) (hjjean@sbcglobal.net@75.0.171.244 with login) by smtp111.sbc.mail.re2.yahoo.com with SMTP; 14 Apr 2006 22:00:27 -0000 Received: by lucon.org (Postfix, from userid 1000) id D662264034; Fri, 14 Apr 2006 15:00:25 -0700 (PDT) Date: Fri, 14 Apr 2006 22:50:00 -0000 From: "H. J. Lu" To: Bob Wilson Cc: binutils@sources.redhat.com Subject: Re: [Xtensa] add LD workaround for inconsistent linkonce sections Message-ID: <20060414220025.GA1391@lucon.org> References: <44401755.3000001@tensilica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44401755.3000001@tensilica.com> User-Agent: Mutt/1.4.2.1i Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00184.txt.bz2 On Fri, Apr 14, 2006 at 02:42:45PM -0700, Wilson; Bob, Tensillca wrote: > This is patch is a workaround for a problem with .gnu.linkonce sections > that is better solved by using COMDAT groups. Xtensa "property tables" > describing linkonce sections must be kept together with those sections in > a link. If a linkonce section is taken from one input file, and the > corresponding property table is taken from a different input file, bad > things happen. This doesn't normally happen, but it can occur when a > particular property table is missing from one input file. (I think an > alternate solution would be to require property tables to exist even when > they are empty.) When property tables are kept in COMDAT groups with the > sections they describe, the whole problem will be nicely avoided. In the > meantime, this patch iterates over all the sections included in the link > and throws out any property tables that are inconsistent, i.e., that refer > to sections from different input files. > ia64 has the same issue with unwind sections. We just fake a comdat group for unwind sections. H.J.