* elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
authorDaniel Jacobowitz <drow@false.org>
Fri, 16 Nov 2001 02:56:08 +0000 (02:56 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 16 Nov 2001 02:56:08 +0000 (02:56 +0000)
        local syms from discarded sections.  Update comment.

bfd/ChangeLog
bfd/elflink.h

index 1d15e0aab6f0eb35ddad05280644081ba9c1ec9e..24bb2e6b4d0ae80603d8b0180766a8b01798705f 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-15  Daniel Jacobowitz  <drow@mvista.com>
+
+       * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
+       local syms from discarded sections.  Update comment.
+
 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
 
        * po/SRC-POTFILES.in: Regenerate.
index da0021ccefe907932394c0f2d881f5181a8dac0a..431d17ddf15d9ded0d987c91d0310e8b52273e98 100644 (file)
@@ -7811,7 +7811,7 @@ elf_reloc_symbol_deleted_p (offset, cookie)
       else if (rcookie->locsyms)
        {
          /* It's not a relocation against a global symbol,
-            but it could be a relocation against a section
+            but it could be a relocation against a local
             symbol for a discarded section.  */
          asection *isec;
 
@@ -7820,7 +7820,6 @@ elf_reloc_symbol_deleted_p (offset, cookie)
            {
              isec = section_from_elf_index (rcookie->abfd, isym.st_shndx);
              if (isec != NULL
-                 && ELF_ST_TYPE (isym.st_info) == STT_SECTION
                  && ! bfd_is_abs_section (isec)
                  && bfd_is_abs_section (isec->output_section))
                return true;