From 0ba38529f27a815a576bc07c85ceb65f6498ef5a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 19 Jan 2015 18:15:30 +1030 Subject: 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. --- bfd/elf32-nios2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/elf32-nios2.c') diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c index 55a3f60..c72c460 100644 --- a/bfd/elf32-nios2.c +++ b/bfd/elf32-nios2.c @@ -764,6 +764,7 @@ struct elf_reloc_map }; static const struct elf_reloc_map nios2_reloc_map[] = { + {BFD_RELOC_NONE, R_NIOS2_NONE}, {BFD_RELOC_NIOS2_S16, R_NIOS2_S16}, {BFD_RELOC_NIOS2_U16, R_NIOS2_U16}, {BFD_RELOC_16_PCREL, R_NIOS2_PCREL16}, -- cgit v1.1