This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ELF options may be missing from `ld --help' output after migration to ld_list_options
- From: Ilya Malakhov <ilmalakhovthefirst at gmail dot com>
- To: binutils at sourceware dot org
- Cc: hjl dot tools at gmail dot com
- Date: Fri, 10 Apr 2015 11:05:45 +0300
- Subject: ELF options may be missing from `ld --help' output after migration to ld_list_options
- Authentication-results: sourceware.org; auth=none
Hi,
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:
. . .
for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
case " $all_emuls " in
*" e${i}.o "*)
case "${i}" in
*elf*)
elf_list_options=TRUE
. ${srcdir}/emulparams/${i}.sh
if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
elf_shlib_list_options=TRUE
fi
if test x${PLT_UNWIND} = xyes; then
elf_plt_unwind_list_options=TRUE
fi
;;
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
. . .
Currently one may very well stay with these variables unreasonably set to FALSE
unless an elf emulation is met several times within the `$targ_emul
$targ_extra_emuls $targ_extra_libpath' list. This breaks a glibc build with
upstream binutils since a number of important ELF-specific options checked for
at `glibc/configure' stage are missing from `ld -v --help' output.