This is the mail archive of the dwarf2@corp.sgi.com mailing list for the dwarf2 project.


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

Re: duplicate dwarf2 reduction via comdat


Jason Merrill wrote:
> 
> >>>>> "David" == David B Anderson <davea@quasar.engr.sgi.com> writes:
> 
> > The 'internal' references Jason mentions have to
> > be implemented as relocations with section offsets.
> > (ie, as unnamed offsets relative to a section , where the
> > section name is a global).  Right?
> 
> Yes.
> 
> > The Elf COMDAT (aka SECTION GROUP) rules forbid relocations
> > which are offsets into a COMDAT section.
> 
> Why?  Arrgh.

No, that's not right.  They forbid relocations of a COMDAT section
that aren't coming from the same COMDAT.  That is, if you want to
relocate something in a COMDAT, you need to do it from a relocation
section in the same COMDAT group.

Jim
-- 
-	    Jim Dehnert		dehnert@transmeta.com
	    (408)919-6984	dehnertj@acm.org

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