public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: Ilya Malakhov <ilmalakhovthefirst@gmail.com>
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
Date: Fri, 10 Apr 2015 08:55:00 -0000	[thread overview]
Message-ID: <20150410085450.GK27812@bubble.grove.modra.org> (raw)
In-Reply-To: <CAK1sNPBj=q0M8-3a=kjC1fGp-C+X==PUr6uQd+uf26inNshjiw@mail.gmail.com>

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

  reply	other threads:[~2015-04-10  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10  8:05 Ilya Malakhov
2015-04-10  8:55 ` Alan Modra [this message]
2015-05-14 10:41   ` Chung-Lin Tang
2015-05-17  4:57     ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150410085450.GK27812@bubble.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.com \
    --cc=ilmalakhovthefirst@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).