alpha-osf: Undefined reference in libbfd.a causes GDB build failure
Joel Brobecker
brobecker@gnat.com
Tue Jun 4 10:33:00 GMT 2002
Hello,
the binutils directory no longer builds due to a new function in bfd:
<<
void
bfd_discard_group (abfd, group)
bfd *abfd;
asection *group;
{
if ((group->flags & SEC_GROUP) != 0
&& abfd->xvec->flavour == bfd_target_elf_flavour)
bfd_elf_discard_group (abfd, group);
}
>>
The problem is that on alpha-osf, elf.c is not compiled in, so libbfd.a
contains an undefined reference to bfd_elf_discard_group, later causing
the link-time failure in binutils.
I am sorry I can't suggest a patch to fix it, as I still have a very
limited knowledge of bfd.
Meanwhile, as this new function does not seem to be used anywhere, I
just commented out its body in my version of the sources, in order to
get past this glitch.
--
Joel
More information about the Gdb-patches
mailing list