Fix libctf build on non-ELF targets.
authorNick Alcock <nick.alcock@oracle.com>
Wed, 29 May 2019 09:11:37 +0000 (11:11 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 29 May 2019 09:11:37 +0000 (11:11 +0200)
commit9698cf9b1c485edbbeabc9f65bfd0fdef92e3854
tree5dbe117ab7f582cb95faec5ce3b183c7d6397155
parent90f879191c1bc8455527f66fb4ab46873aa870aa
Fix libctf build on non-ELF targets.

All machinery works as on ELF, except for automatic loading of ELF
string and symbol tables in the BFD-style open machinery.

        * Makefile.def (dependencies): configure-libctf depends on all-bfd
        and all its deps.
        * Makefile.in: Regenerated.

libctf/
        * configure.in: Check for bfd_section_from_elf_index.
        * configure: Regenerate.
        * config.h.in [HAVE_BFD_ELF]: Likewise.
        * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it.
        abfd is potentially unused now.
ChangeLog
Makefile.def
Makefile.in
libctf/ChangeLog
libctf/config.h.in
libctf/configure
libctf/configure.ac
libctf/ctf-open-bfd.c