]> Git Repo - binutils.git/blobdiff - bfd/elf32-xtensa.c
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
[binutils.git] / bfd / elf32-xtensa.c
index 1182bd9de6d55fc90684b87ecc7e8356fbe28824..2531df5810d90bf700a39baa168b7259d6dd5df3 100644 (file)
@@ -9805,6 +9805,11 @@ xtensa_callback_required_dependence (bfd *abfd,
       (*callback) (sec, sec_size, sgotplt, 0, closure);
     }
 
+  /* Only ELF files are supported for Xtensa.  Check here to avoid a segfault
+     when building uclibc, which runs "ld -b binary /dev/null".  */
+  if (bfd_get_flavour (abfd) != bfd_target_elf_flavour)
+    return ok;
+
   internal_relocs = retrieve_internal_relocs (abfd, sec, 
                                              link_info->keep_memory);
   if (internal_relocs == NULL
This page took 0.024705 seconds and 4 git commands to generate.