PowerPC64 add_symbol_adjust
authorAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:27:50 +0000 (20:57 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:27:50 +0000 (20:57 +1030)
* elf64-ppc.c (add_symbol_adjust): Delete dead code.

bfd/ChangeLog
bfd/elf64-ppc.c

index 7ec26b0..733735c 100644 (file)
@@ -1,5 +1,9 @@
 2016-12-03  Alan Modra  <amodra@gmail.com>
 
+       * elf64-ppc.c (add_symbol_adjust): Delete dead code.
+
+2016-12-03  Alan Modra  <amodra@gmail.com>
+
        * elf64-ppc.c (add_symbol_adjust): Correct order of tests for
        warning and indirect symbols.
 
index d7d6adb..1256ead 100644 (file)
@@ -5195,14 +5195,6 @@ ppc64_elf_before_check_relocs (bfd *ibfd, struct bfd_link_info *info)
       p = &eh->u.next_dot_sym;
     }
 
-  /* Clear the list for non-ppc64 input files.  */
-  p = &htab->dot_syms;
-  while ((eh = *p) != NULL)
-    {
-      *p = NULL;
-      p = &eh->u.next_dot_sym;
-    }
-
   /* We need to fix the undefs list for any syms we have twiddled to
      undefweak.  */
   if (htab->twiddled_syms)