This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ELF options may be missing from `ld --help' output after migration to ld_list_options


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]