status porting kde2 - ld crashes

Ralf Habacker Ralf.Habacker@saght.tessag.com
Thu May 31 00:24:00 GMT 2001


Hi Paul,

The current state on cpmpiling kde2 is, that kdesupport and kdecore are
compiled, but while compiling kdeui the linker crashes after consuming 390
MB RAM. I have looked in the source and found that it crashes in
bfd_find_target() (see below).

Do you have any ideas, what I can do ?

Regards

Ralf

const bfd_target *
bfd_find_target (target_name, abfd)
     const char *target_name;
     bfd *abfd;
{
  const char *targname;
  const bfd_target *target;

  if (target_name != NULL)
    targname = target_name;
  else
    targname = getenv ("GNUTARGET");

  /* This is safe; the vector cannot be null */
  if (targname == NULL || strcmp (targname, "default") == 0)
    {
      abfd->target_defaulted = true;
      if (bfd_default_vector[0] != NULL)
	abfd->xvec = bfd_default_vector[0];
      else
	abfd->xvec = bfd_target_vector[0];
      return abfd->xvec;
    }
--crashes on setting.....---------------------------
  abfd->target_defaulted = false;
----------------------------------------------------

  target = find_target (targname);
  if (target == NULL)
    return NULL;

  abfd->xvec = target;
  return target;
}


Ralf Habacker
EMail: Ralf@habacker.de
       Ralf.Habacker@saght.tessag.com



More information about the Binutils mailing list