This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Xtensa] add LD workaround for inconsistent linkonce sections
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 14 Apr 2006 15:00:25 -0700
- Subject: Re: [Xtensa] add LD workaround for inconsistent linkonce sections
- References: <44401755.3000001@tensilica.com>
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.