This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix compile time warning in bfd/elf32-iq2000.c


Hi Guys,

  I am applying the patch below to fix a compile time warning building
  elf32-iq2000.c.

Cheers
  Nick

bfd/ChangeLog
2005-02-11  Nick Clifton  <nickc@redhat.com>

	* elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
	array.

Index: bfd/elf32-iq2000.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-iq2000.c,v
retrieving revision 1.10
diff -c -3 -p -r1.10 elf32-iq2000.c
*** bfd/elf32-iq2000.c	19 Nov 2004 11:58:02 -0000	1.10
--- bfd/elf32-iq2000.c	11 Feb 2005 17:13:25 -0000
*************** static reloc_howto_type iq2000_elf_vtent
*** 234,263 ****
  	 FALSE);		   /* pcrel_offset */
  
  
- /* Map BFD reloc types to IQ2000 ELF reloc types.  */
- 
- struct iq2000_reloc_map
- {
-   bfd_reloc_code_real_type bfd_reloc_val;
-   unsigned int iq2000_reloc_val;
- };
- 
- static const struct iq2000_reloc_map iq2000_reloc_map [] =
- {
-   { BFD_RELOC_NONE,	       R_IQ2000_NONE },
-   { BFD_RELOC_16,	       R_IQ2000_16 },
-   { BFD_RELOC_32,	       R_IQ2000_32 },
-   { BFD_RELOC_MIPS_JMP,	       R_IQ2000_26 },
-   { BFD_RELOC_16_PCREL_S2,     R_IQ2000_PC16 },
-   { BFD_RELOC_HI16,	       R_IQ2000_HI16 },
-   { BFD_RELOC_LO16,	       R_IQ2000_LO16 },
-   { BFD_RELOC_IQ2000_OFFSET_16,R_IQ2000_OFFSET_16 },
-   { BFD_RELOC_IQ2000_OFFSET_21,R_IQ2000_OFFSET_21 },
-   { BFD_RELOC_IQ2000_UHI16,    R_IQ2000_UHI16 },
-   { BFD_RELOC_VTABLE_INHERIT,  R_IQ2000_GNU_VTINHERIT },
-   { BFD_RELOC_VTABLE_ENTRY,    R_IQ2000_GNU_VTENTRY },
- };
- 
  static bfd_reloc_status_type
  iq2000_elf_howto_hi16_reloc (bfd *abfd ATTRIBUTE_UNUSED,
  			     arelent *reloc_entry,
--- 234,239 ----
*************** iq2000_elf_relocate_hi16 (bfd *input_bfd
*** 329,334 ****
--- 305,312 ----
    return bfd_reloc_ok;
  }
  
+ /* Map BFD reloc types to IQ2000 ELF reloc types.  */
+ 
  static reloc_howto_type *
  iq2000_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
  			  bfd_reloc_code_real_type code)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]