aboutsummaryrefslogtreecommitdiff
path: root/libctf/config.h.in
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-05-29 11:11:37 +0200
committerJose E. Marchesi <jose.marchesi@oracle.com>2019-05-29 11:11:37 +0200
commit9698cf9b1c485edbbeabc9f65bfd0fdef92e3854 (patch)
tree5dbe117ab7f582cb95faec5ce3b183c7d6397155 /libctf/config.h.in
parent90f879191c1bc8455527f66fb4ab46873aa870aa (diff)
downloadgdb-9698cf9b1c485edbbeabc9f65bfd0fdef92e3854.zip
gdb-9698cf9b1c485edbbeabc9f65bfd0fdef92e3854.tar.gz
gdb-9698cf9b1c485edbbeabc9f65bfd0fdef92e3854.tar.bz2
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.
Diffstat (limited to 'libctf/config.h.in')
-rw-r--r--libctf/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libctf/config.h.in b/libctf/config.h.in
index 8d87b3d..8292010 100644
--- a/libctf/config.h.in
+++ b/libctf/config.h.in
@@ -1,5 +1,8 @@
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Whether libbfd was configured for an ELF target. */
+#undef HAVE_BFD_ELF
+
/* Define to 1 if you have the <byteswap.h> header file. */
#undef HAVE_BYTESWAP_H