This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ELF options may be missing from `ld --help' output after migration to ld_list_options
- From: Alan Modra <amodra at gmail dot com>
- To: Ilya Malakhov <ilmalakhovthefirst at gmail dot com>
- Cc: binutils at sourceware dot org, hjl dot tools at gmail dot com
- Date: Fri, 10 Apr 2015 18:24:50 +0930
- Subject: Re: ELF options may be missing from `ld --help' output after migration to ld_list_options
- Authentication-results: sourceware.org; auth=none
- References: <CAK1sNPBj=q0M8-3a=kjC1fGp-C+X==PUr6uQd+uf26inNshjiw at mail dot gmail dot 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