This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

alpha-osf: Undefined reference in libbfd.a causes GDB build failure


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


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