From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10414 invoked by alias); 6 Feb 2014 00:17:42 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 10397 invoked by uid 89); 6 Feb 2014 00:17:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f173.google.com Received: from mail-vc0-f173.google.com (HELO mail-vc0-f173.google.com) (209.85.220.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 06 Feb 2014 00:17:41 +0000 Received: by mail-vc0-f173.google.com with SMTP id ld13so889038vcb.4 for ; Wed, 05 Feb 2014 16:17:38 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.58.123.70 with SMTP id ly6mr2994061veb.26.1391645858544; Wed, 05 Feb 2014 16:17:38 -0800 (PST) Received: by 10.58.169.83 with HTTP; Wed, 5 Feb 2014 16:17:38 -0800 (PST) In-Reply-To: References: Date: Thu, 06 Feb 2014 00:17:00 -0000 Message-ID: Subject: Re: ld -plugin option From: Andrew Pinski To: Yuanfang Chen Cc: binutils Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00038.txt.bz2 On Wed, Feb 5, 2014 at 4:07 PM, Yuanfang Chen wrote: > Hello, > > Maybe this is a silly question, however, it annoys me today for too > long. I'm using ld 2.24, which shows that it supports '-plugin' > option by 'ld --help |grep plugin', however 'ld -plugin' returns > "unrecognized option '-plugin'". I really don't know where the > problem is. Another question is that is the plugin interface > supported by ld and ld.gold the same? Yes the interfaces is the same. The issue you are having is -plugin takes an argument and you are not supplying an option to the -plugin option. Thanks, Andrew Pinski > > thank you so much, > cyf > > [arch@t431s-arch gcc-4.6.4]$ gcc4.6 -### > Using built-in specs. > COLLECT_GCC=gcc4.6 > COLLECT_LTO_WRAPPER=/home/arch/Install/gcc-4.6.4/libexec/gcc/x86_64-unknown-linux-gnu/4.6.4/lto-wrapper > Target: x86_64-unknown-linux-gnu > Configured with: ../gcc-4.6.4/configure > --enable-languages=c,c++,fortran --enable-multiarch --enable-shared > --enable-threads=posix --program-suffix=4.6 --with-gmp=/usr/local/lib > --with-mpc=/usr/lib --with-mpfr=/usr/lib --without-included-gettext > --with-system-zlib --with-tune=generic > --prefix=/home/arch/Install/gcc-4.6.4 --disable-multilib --enable-lto > --enable-gold --enable-ld=default --enable-plugin > --with-plugin-ld=ld.gold > Thread model: posix > gcc version 4.6.4 (GCC) > > [arch@t431s-arch gcc-4.6.4]$ ld -v > GNU ld (GNU Binutils) 2.24 > > [arch@t431s-arch gcc-4.6.4]$ ld -plugin > ld: unrecognized option '-plugin' > ld: use the --help option for usage information