Fix unused-but-set warning in elf32-cris.c:elf_cris_finish_dynamic_symbol
authorHans-Peter Nilsson <hp@bitrange.com>
Fri, 27 Jan 2017 08:12:14 +0000 (09:12 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 27 Jan 2017 08:12:14 +0000 (09:12 +0100)
* elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
local variable dynobj.

bfd/ChangeLog
bfd/elf32-cris.c

index d5fd77c74731b54c9550739e73d9266367875e80..4fc1bc0e33d2ec65b925b92fbed0866573ba3590 100644 (file)
@@ -1,5 +1,8 @@
 2017-01-27  Hans-Peter Nilsson  <hp@axis.com>
 
+       * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
+       local variable dynobj.
+
        PR ld/20995
        * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
        (elf_cris_adjust_dynamic_symbol): Place variables copied into the
index 0c8945e4fbcdec104ff70e67b83c18e74822275e..a69c7e48767b87c69ea7a148b29f851447a99f7a 100644 (file)
@@ -2057,7 +2057,6 @@ elf_cris_finish_dynamic_symbol (bfd *output_bfd,
                                Elf_Internal_Sym *sym)
 {
   struct elf_cris_link_hash_table * htab;
-  bfd *dynobj;
 
   /* Where in the plt entry to put values.  */
   int plt_off1 = 2, plt_off2 = 10, plt_off3 = 16;
@@ -2089,8 +2088,6 @@ elf_cris_finish_dynamic_symbol (bfd *output_bfd,
       plt_pic_entry = elf_cris_pic_plt_entry_v32;
     }
 
-  dynobj = htab->root.dynobj;
-
   if (h->plt.offset != (bfd_vma) -1)
     {
       asection *splt;
This page took 0.029689 seconds and 4 git commands to generate.