Remove dead code.
authorMarcus Shawcroft <marcus.shawcroft@gmail.com>
Sun, 22 Mar 2015 07:57:18 +0000 (07:57 +0000)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Mon, 23 Mar 2015 14:46:04 +0000 (14:46 +0000)
bfd/ChangeLog
bfd/elfnn-aarch64.c

index 7694d62fe56510ec952af46919f7a8169bfb0a3c..efe94e8d82d23c1a5081232cf2ba92f582efff23 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-23  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * elfnn-aarch64.c (aarch64_erratum_835769_fixes)
+       (num_aarch64_erratum_835769_fixes): Remove.
+       (elfNN_aarch64_size_stubs): Remove assignments to above.
+
 2015-03-23  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
        (aarch64_mem_op_p): Update comment. Rename rtn to rt2.
index 2073ed47ed75bc7eb0464bf60943909f5f80f2e8..5d47f8e818a617e726f24dbb505f1d160402c926 100644 (file)
@@ -1847,12 +1847,6 @@ struct elf_aarch64_link_hash_table
   /* Fix erratum 835769.  */
   int fix_erratum_835769;
 
-  /* A table of fix locations for erratum 835769.  This holds erratum
-     fix locations between elfNN_aarch64_size_stubs() and
-     elfNN_aarch64_write_section().  */
-  struct aarch64_erratum_835769_fix *aarch64_erratum_835769_fixes;
-  unsigned int num_aarch64_erratum_835769_fixes;
-
   /* The number of bytes in the initial entry in the PLT.  */
   bfd_size_type plt_header_size;
 
@@ -3533,16 +3527,6 @@ elfNN_aarch64_size_stubs (bfd *output_bfd,
          stub_entry->veneered_insn = erratum_835769_fixes[i].veneered_insn;
          stub_entry->output_name = erratum_835769_fixes[i].stub_name;
        }
-
-      /* Stash the erratum 835769 fix array for use later in
-        elfNN_aarch64_write_section().  */
-      htab->aarch64_erratum_835769_fixes = erratum_835769_fixes;
-      htab->num_aarch64_erratum_835769_fixes = num_erratum_835769_fixes;
-    }
-  else
-    {
-      htab->aarch64_erratum_835769_fixes = NULL;
-      htab->num_aarch64_erratum_835769_fixes = 0;
     }
 
   return TRUE;