This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ln -r and cherry picking.
- From: "Cary Coutant" <ccoutant at google dot com>
- To: "Kenneth Zadeck" <zadeck at naturalbridge dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>, "Diego Novillo" <dnovillo at google dot com>, "Ollie Wild" <aaw at google dot com>, "Maddox, Bill" <maddox at google dot com>, "Rafael Espindola" <espindola at google dot com>, "Hubicha, Jan" <jh at suse dot cz>
- Date: Fri, 6 Jun 2008 13:18:00 -0700
- Subject: Re: ln -r and cherry picking.
- References: <484957E1.9010103@naturalbridge.com>
> 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