public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ELF options may be missing from `ld --help' output after migration to ld_list_options
@ 2015-04-10  8:05 Ilya Malakhov
  2015-04-10  8:55 ` Alan Modra
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Malakhov @ 2015-04-10  8:05 UTC (permalink / raw)
  To: binutils; +Cc: hjl.tools

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-17  4:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10  8:05 ELF options may be missing from `ld --help' output after migration to ld_list_options Ilya Malakhov
2015-04-10  8:55 ` Alan Modra
2015-05-14 10:41   ` Chung-Lin Tang
2015-05-17  4:57     ` Alan Modra

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).