From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5858 invoked by alias); 18 Jan 2010 18:48:33 -0000 Received: (qmail 5801 invoked by uid 48); 18 Jan 2010 18:48:17 -0000 Date: Mon, 18 Jan 2010 18:48:00 -0000 Message-ID: <20100118184817.5800.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "d dot g dot gorbachev at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg02229.txt.bz2 ------- Comment #15 from d dot g dot gorbachev at gmail dot com 2010-01-18 18:48 ------- Created an attachment (id=19649) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19649&action=view) Simple patch It leaves -plugin-opt in LINK_COMMAND_SPEC, but I think it is not quite right, as LIBGCC_SPEC and LIB_SPEC are redefined by many targets (and, for example, choose libc or libc_p depending on -p / -pg / -profile). GCC r155915 bootstrapped with this patch on i686-pc-linux-gnu with and without --disable-shared option. It seems to work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690