Cary Coutant wrote:
 2) LTO sections need to be able to find "their index" of decls and
 types.  By "their index" I mean the index that each section used to
 reference the decls and types when the section was generated.

Can't you just put an ELF symbol (can be an unnamed local -- could
even just be a section symbol) on the index section, then add a
pointer in the IR section with a relocation to that symbol? This is
basically how DWARF .debug_info sections point to the abbrev table in
the .debug_abbrev sections.

-cary
I think that one of the goals here is to not make that too dependent on elf. For instance, we are in the process of getting rid of all of the dwarf. After maddox does that, our only dependence on elf will be as a container to hold all of the sections. Given that gcc is not always an elf compiler, it really is a lot easier to invent your own wheel for something like this rather that using elf's wheel for the first target and then having to figure out how make someone else wheel fit the for the rest of the targets.

kenny

Reply via email to