Fix Compile Time Warnings: bfd/elfxx-mips.c
Nick Clifton
nickc@redhat.com
Wed Feb 23 14:53:00 GMT 2005
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));
More information about the Binutils
mailing list