aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-10-05 18:18:23 +0000
committerBob Wilson <bob.wilson@acm.org>2007-10-05 18:18:23 +0000
commit768a5a741d04aa33e90ae03c941e230b9016bfec (patch)
tree14b37d07ebe0dad8fae38ecd64e15b86879eadb8 /bfd/elf32-xtensa.c
parent03669f1c025b2f1bf007cffb03a8dfe6dc7ee448 (diff)
downloadgdb-768a5a741d04aa33e90ae03c941e230b9016bfec.zip
gdb-768a5a741d04aa33e90ae03c941e230b9016bfec.tar.gz
gdb-768a5a741d04aa33e90ae03c941e230b9016bfec.tar.bz2
* elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
r_type and howto after calling do_fix_for_relocateable_link and do_fix_for_final_link.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index acdff77..dac6896 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -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. */