2005-02-08 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Tue, 8 Feb 2005 13:33:56 +0000 (13:33 +0000)
committerPaul Brook <paul@codesourcery.com>
Tue, 8 Feb 2005 13:33:56 +0000 (13:33 +0000)
* elflink.c (elf_link_input_bfd): Ignore symbols from null input
sections.

bfd/ChangeLog
bfd/elflink.c

index ecd820db92ba9094955e4903c365eb99b26eeead..bc6b5852d951cb298c51e338a875166e2a3d080e 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Paul Brook  <paul@codesourcery.com>
+
+       * elflink.c (elf_link_input_bfd): Ignore symbols from null input
+       sections.
+
 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
 
        * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
index d7c9ded0b18412dfd401b7bc2dea3d5577f742d1..b8b9af5e2eef6a018d2749255f6fe39f80b56f12 100644 (file)
@@ -6782,8 +6782,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
         For the benefit of the MIPS ELF linker, we check SEC_EXCLUDE
         as well as linker_mark.  */
       if ((isym->st_shndx < SHN_LORESERVE || isym->st_shndx > SHN_HIRESERVE)
-         && isec != NULL
-         && ((! isec->linker_mark && (isec->flags & SEC_HAS_CONTENTS) != 0)
+         && (isec == NULL
+             || (! isec->linker_mark && (isec->flags & SEC_HAS_CONTENTS) != 0)
              || (! finfo->info->relocatable
                  && (isec->flags & SEC_EXCLUDE) != 0)))
        continue;