From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1424 invoked by alias); 6 Feb 2014 00:07:32 -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 1411 invoked by uid 89); 6 Feb 2014 00:07:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vb0-f41.google.com Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 06 Feb 2014 00:07:30 +0000 Received: by mail-vb0-f41.google.com with SMTP id g10so879184vbg.14 for ; Wed, 05 Feb 2014 16:07:28 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.221.26.10 with SMTP id rk10mr2991357vcb.0.1391645248651; Wed, 05 Feb 2014 16:07:28 -0800 (PST) X-Google-Sender-Delegation: tabloid.adroit@gmail.com Received: by 10.220.148.70 with HTTP; Wed, 5 Feb 2014 16:07:28 -0800 (PST) Date: Thu, 06 Feb 2014 00:07:00 -0000 Message-ID: Subject: ld -plugin option From: Yuanfang Chen To: binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00037.txt.bz2 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? 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