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



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

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