* 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.
This commit is contained in:
parent
03669f1c02
commit
768a5a741d
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2007-10-05 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* elf32-xtensa.c (removed_by_actions): New.
|
* elf32-xtensa.c (removed_by_actions): New.
|
||||||
|
|
|
@ -2095,7 +2095,6 @@ elf_xtensa_relocate_section (bfd *output_bfd,
|
||||||
if (!do_fix_for_relocatable_link (rel, input_bfd, input_section,
|
if (!do_fix_for_relocatable_link (rel, input_bfd, input_section,
|
||||||
contents))
|
contents))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
r_type = ELF32_R_TYPE (rel->r_info);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r_type == R_XTENSA_ASM_SIMPLIFY)
|
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. */
|
/* Check if this references a section in another input file. */
|
||||||
do_fix_for_final_link (rel, input_bfd, input_section, contents,
|
do_fix_for_final_link (rel, input_bfd, input_section, contents,
|
||||||
&relocation);
|
&relocation);
|
||||||
|
|
||||||
/* Update some already cached values. */
|
|
||||||
r_type = ELF32_R_TYPE (rel->r_info);
|
|
||||||
howto = &elf_howto_table[r_type];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sanity check the address. */
|
/* Sanity check the address. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue