diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-10-05 18:18:23 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-10-05 18:18:23 +0000 |
commit | dc412eae849fab8d65e23399c8cb817e508681bd (patch) | |
tree | c504121da143e8955fdda217af26ce3f6b163792 /bfd | |
parent | e16bc523b00d9c2a1cade377f22ce1c89282ad89 (diff) | |
download | gdb-dc412eae849fab8d65e23399c8cb817e508681bd.tar.gz |
* 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')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-xtensa.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c265a259874..0fa58a86d09 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2007-10-05 Bob Wilson <bob.wilson@acm.org> + * 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. + +2007-10-05 Bob Wilson <bob.wilson@acm.org> + * elf32-xtensa.c (removed_by_actions): New. (offset_with_removed_text): Reimplement using removed_by_actions. (offset_with_removed_text_before_fill): Delete. diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index acdff77423c..dac6896a015 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. */ |