From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56712 invoked by alias); 10 Apr 2015 08:55:00 -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 56695 invoked by uid 89); 10 Apr 2015 08:55:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f173.google.com Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com) (209.85.192.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 10 Apr 2015 08:54:58 +0000 Received: by pddn5 with SMTP id n5so16337290pdd.2 for ; Fri, 10 Apr 2015 01:54:56 -0700 (PDT) X-Received: by 10.66.221.135 with SMTP id qe7mr834398pac.97.1428656096417; Fri, 10 Apr 2015 01:54:56 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-155-134.oycza5.sa.bigpond.net.au. [58.160.155.134]) by mx.google.com with ESMTPSA id x1sm1508428pdp.1.2015.04.10.01.54.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 01:54:55 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id C4DD2EA017E; Fri, 10 Apr 2015 18:24:50 +0930 (ACST) Date: Fri, 10 Apr 2015 08:55:00 -0000 From: Alan Modra To: Ilya Malakhov Cc: binutils@sourceware.org, hjl.tools@gmail.com Subject: Re: ELF options may be missing from `ld --help' output after migration to ld_list_options Message-ID: <20150410085450.GK27812@bubble.grove.modra.org> Mail-Followup-To: Ilya Malakhov , binutils@sourceware.org, hjl.tools@gmail.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00190.txt.bz2 On Fri, Apr 10, 2015 at 11:05:45AM +0300, Ilya Malakhov wrote: > One should probably check whether to set elf_list_options and others to TRUE > in `*)' case rather than in `*" e${i}.o "*)' one within ld/configure.ac in > master branch of binutils-gdb.git: Indeed. Thanks! * configure.ac: Set elf_list_options etc. in proper case. * configure: Regenerate. diff --git a/ld/configure.ac b/ld/configure.ac index ac3c14f..e120a05 100644 --- a/ld/configure.ac +++ b/ld/configure.ac @@ -317,7 +317,12 @@ do for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do case " $all_emuls " in - *" e${i}.o "*) + *" e${i}.o "*) ;; + *) + all_emuls="$all_emuls e${i}.o" + eval result=\$tdir_$i + test -z "$result" && result=$targ_alias + echo tdir_$i=$result >> tdirs case "${i}" in *elf*) elf_list_options=TRUE @@ -331,12 +336,6 @@ do ;; esac ;; - *) - all_emuls="$all_emuls e${i}.o" - eval result=\$tdir_$i - test -z "$result" && result=$targ_alias - echo tdir_$i=$result >> tdirs - ;; esac done -- Alan Modra Australia Development Lab, IBM