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 Warnings: bfd/elfxx-mips.c


Hi Guys,

  Interesting - gcc 4.0 found an uninitialised *bitfield* in
  elfxx-mips.c that was being written out to a file.  Fix by applying
  the obvious patch (below).

Cheers
  Nick

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

	* elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
	the relvaddr field of the Elf32_crinfo structure.

Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.123
diff -c -3 -p -r1.123 elfxx-mips.c
*** bfd/elfxx-mips.c	21 Feb 2005 13:57:55 -0000	1.123
--- bfd/elfxx-mips.c	23 Feb 2005 11:37:24 -0000
*************** mips_elf_create_dynamic_relocation (bfd 
*** 3956,3961 ****
--- 3956,3962 ----
  
  	  cr = (scpt->contents
  		+ sizeof (Elf32_External_compact_rel));
+ 	  mips_elf_set_cr_relvaddr (cptrel, 0);
  	  bfd_elf32_swap_crinfo_out (output_bfd, &cptrel,
  				     ((Elf32_External_crinfo *) cr
  				      + scpt->reloc_count));


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