* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
authorBob Wilson <bob.wilson@acm.org>
Wed, 18 Jul 2007 21:06:06 +0000 (21:06 +0000)
committerBob Wilson <bob.wilson@acm.org>
Wed, 18 Jul 2007 21:06:06 +0000 (21:06 +0000)
non-ELF sections.

bfd/ChangeLog
bfd/elf32-xtensa.c

index 488344320ee69882ed831ba127b319a464be0430..81a8fd487e198fa70d63102b53c6c946ecb410c8 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-18  Bob Wilson  <bob.wilson@acm.org>
+       
+       * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
+       non-ELF sections.
+       
 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
        
        * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
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