This is the mail archive of the
dwarf2@corp.sgi.com
mailing list for the dwarf2 project.
Re: duplicate dwarf2 reduction via comdat
- To: Jason Merrill <jason at redhat dot com>, Jim Dehnert <dehnert at transmeta dot com>
- Subject: Re: duplicate dwarf2 reduction via comdat
- From: David B Anderson <davea at quasar dot engr dot sgi dot com>
- Date: Thu, 1 Feb 2001 12:41:18 -0800 (PST)
- Cc: BRENDER at gemevn dot zko dot dec dot com, DWARF2 at corp dot sgi dot com, David B Anderson <davea at quasar dot engr dot sgi dot com>
- References: <200101311959.LAA61606@quasar.engr.sgi.com> <u9g0hyfvn3.fsf@casey.cambridge.redhat.com>
- Reply-To: David B Anderson <davea at quasar dot engr dot sgi dot com>
davea
> > The Elf COMDAT (aka SECTION GROUP) rules forbid relocations
> > which are offsets into a COMDAT section.
Jason
> Why? Arrgh.
dehnert:
>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.
Oops, yes, that's what I meant.
Of course section-relative relocations within a section group work fine.
As do section-relative relocations into any non-section-group section
(from any section at all, section-group or not).
But between section groups, as Jason proposed, is forbidden.
Thanks for the correction, Jim.
davea