From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19918 invoked by alias); 12 Feb 2014 13:15:24 -0000 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 Received: (qmail 19907 invoked by uid 89); 12 Feb 2014 13:15:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f171.google.com Received: from mail-ob0-f171.google.com (HELO mail-ob0-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 12 Feb 2014 13:15:18 +0000 Received: by mail-ob0-f171.google.com with SMTP id wp4so10467011obc.16 for ; Wed, 12 Feb 2014 05:15:16 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.134.200 with SMTP id pm8mr16681966oeb.40.1392210916035; Wed, 12 Feb 2014 05:15:16 -0800 (PST) Received: by 10.182.182.69 with HTTP; Wed, 12 Feb 2014 05:15:15 -0800 (PST) In-Reply-To: References: <20140211022910.GA31962@atrey.karlin.mff.cuni.cz> <20140211212020.GB7400@kam.mff.cuni.cz> Date: Wed, 12 Feb 2014 13:15:00 -0000 Message-ID: Subject: Re: Fwd: LLVM collaboration? From: =?UTF-8?Q?Rafael_Esp=C3=ADndola?= To: Richard Biener Cc: Jan Hubicka , Renato Golin , gcc Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-02/txt/msg00159.txt.bz2 > What about instead of our current odd way of identifying LTO objects > simply add a special ELF note telling the linker the plugin to use? > > .note._linker_plugin '/...../libltoplugin.so' > > that way the linker should try 1) loading that plugin, 2) register the > specific object with that plugin. > > If a full path is undesired (depends on install setup) then specifying > the plugin SONAME might also work (we'd of course need to bump > our plugins SONAME for each release to allow parallel install > of multiple versions or make the plugin contain all the > dispatch-to-different-GCC-version-lto-wrapper code). Might be an interesting addition to what we have, but keep in mind that LLVM uses thin non-ELF files. It is also able to load IR from previous versions, so for LLVM at least, using the newest plugin is probably the best default. > Richard. Cheers, Rafael