This is the mail archive of the binutils@sourceware.org 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: [Xtensa] add LD workaround for inconsistent linkonce sections


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.


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