* elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
[binutils-gdb.git] / bfd / elf32-xtensa.c
index acdff77423ce31b49a6774eeeff5cac438d947c5..dac6896a015293e4a8862ccc2c17817a0944a6c7 100644 (file)
@@ -2095,7 +2095,6 @@ elf_xtensa_relocate_section (bfd *output_bfd,
              if (!do_fix_for_relocatable_link (rel, input_bfd, input_section,
                                                contents))
                return FALSE;
-             r_type = ELF32_R_TYPE (rel->r_info);
            }
 
          if (r_type == R_XTENSA_ASM_SIMPLIFY)
@@ -2165,10 +2164,6 @@ elf_xtensa_relocate_section (bfd *output_bfd,
          /* Check if this references a section in another input file.  */
          do_fix_for_final_link (rel, input_bfd, input_section, contents,
                                 &relocation);
-
-         /* Update some already cached values.  */
-         r_type = ELF32_R_TYPE (rel->r_info);
-         howto = &elf_howto_table[r_type];
        }
 
       /* Sanity check the address.  */