More fixes related to NONE relocs
* elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration to allow return of first howto. * elf32-fr30.c (fr30_reloc_type_lookup): Likewise. * elf32-m32c.c (m32c_reloc_type_lookup): Likewise. * elf32-moxie.c (moxie_reloc_type_lookup): Likewise. * elf32-or1k.c (or1k_reloc_type_lookup): Likewise. * elf32-rl78.c (rl78_reloc_type_lookup): Likewise. * elf32-rx.c (rx_reloc_type_lookup): Likewise. * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise. * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise. * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE. * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE. (spu_elf_reloc_type_lookup): Adjust to suit.
This commit is contained in:
parent
6346d5ca43
commit
0ba38529f2
13 changed files with 33 additions and 13 deletions
|
@ -264,7 +264,7 @@ m32c_reloc_type_lookup
|
|||
{
|
||||
unsigned int i;
|
||||
|
||||
for (i = ARRAY_SIZE (m32c_reloc_map); --i;)
|
||||
for (i = ARRAY_SIZE (m32c_reloc_map); i--;)
|
||||
if (m32c_reloc_map [i].bfd_reloc_val == code)
|
||||
return & m32c_elf_howto_table [m32c_reloc_map[i].m32c_reloc_val];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue