From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2695 invoked by alias); 6 Jun 2008 20:18:27 -0000 Received: (qmail 2687 invoked by uid 22791); 6 Jun 2008 20:18:25 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jun 2008 20:18:08 +0000 Received: from zps18.corp.google.com (zps18.corp.google.com [172.25.146.18]) by smtp-out.google.com with ESMTP id m56KI0Gu004567 for ; Fri, 6 Jun 2008 21:18:01 +0100 Received: from rv-out-0506.google.com (rvbk40.prod.google.com [10.140.87.40]) by zps18.corp.google.com with ESMTP id m56KHebN001146 for ; Fri, 6 Jun 2008 13:18:00 -0700 Received: by rv-out-0506.google.com with SMTP id k40so1249237rvb.17 for ; Fri, 06 Jun 2008 13:18:00 -0700 (PDT) Received: by 10.141.198.9 with SMTP id a9mr326675rvq.238.1212783480181; Fri, 06 Jun 2008 13:18:00 -0700 (PDT) Received: by 10.140.166.5 with HTTP; Fri, 6 Jun 2008 13:18:00 -0700 (PDT) Message-ID: Date: Fri, 06 Jun 2008 20:18:00 -0000 From: "Cary Coutant" To: "Kenneth Zadeck" Subject: Re: ln -r and cherry picking. Cc: gcc , "Diego Novillo" , "Ollie Wild" , "Maddox, Bill" , "Rafael Espindola" , "Hubicha, Jan" In-Reply-To: <484957E1.9010103@naturalbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <484957E1.9010103@naturalbridge.com> X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00156.txt.bz2 > 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