From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32119 invoked by alias); 6 Feb 2014 00:47:48 -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 32110 invoked by uid 89); 6 Feb 2014 00:47:47 -0000 Authentication-Results: sourceware.org; auth=none 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-oa0-f45.google.com Received: from mail-oa0-f45.google.com (HELO mail-oa0-f45.google.com) (209.85.219.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 06 Feb 2014 00:47:46 +0000 Received: by mail-oa0-f45.google.com with SMTP id i11so1494242oag.32 for ; Wed, 05 Feb 2014 16:47:45 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.241.8 with SMTP id we8mr4019647obc.62.1391647665058; Wed, 05 Feb 2014 16:47:45 -0800 (PST) Received: by 10.76.178.6 with HTTP; Wed, 5 Feb 2014 16:47:44 -0800 (PST) In-Reply-To: References: Date: Thu, 06 Feb 2014 00:47:00 -0000 Message-ID: Subject: Re: ld -plugin option From: "H.J. Lu" To: Yuanfang Chen Cc: Andrew Pinski , binutils Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00040.txt.bz2 On Wed, Feb 5, 2014 at 4:33 PM, Yuanfang Chen wrote: > On Wed, Feb 5, 2014 at 7:17 PM, Andrew Pinski wrote: >> 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 > > Well, that's really confusing, I was expecting something like 'missing > arguments' like the ld.gold does. :-) > > I'am asking this because when I'm doing this: (all are non binary object) > ld.gold -plugin=/path/to/plugin a.o b.o c.o > everything goes fine. > > but > ld -plugin=/path/to/plugin a.o b.o c.o > complains b.o: file not recognized: File format not recognized > How did you configure binutils? Did you use --enable-plugins? -- H.J.