Build failure on ppc-aix (bfd_elf_get_obj_attr_int is undefined)
authorJoel Brobecker <brobecker@gnat.com>
Thu, 25 Nov 2010 00:23:39 +0000 (00:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 25 Nov 2010 00:23:39 +0000 (00:23 +0000)
commit50a9972898610dcce11fbdcf1ca6511174644ef5
treece220916c3a9393736f754f2a780f82ea1166ff5
parent5239e966f1e1ef1b164525fa42c341368ed454aa
Build failure on ppc-aix (bfd_elf_get_obj_attr_int is undefined)

bfd_uses_spe_extensions should only be used when BFD has been built
with ELF support.  The typical way of checking that in GDB is to use
the HAVE_ELF macro.

gdb/ChangeLog:

        * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
        only if HAVE_ELF is defined.
gdb/ChangeLog
gdb/rs6000-tdep.c