aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-23 11:39:14 +0000
committerNick Clifton <nickc@redhat.com>2005-02-23 11:39:14 +0000
commitabc0f8d0f2b686700bda26a5c657050c20820a1d (patch)
treef3038983c8055beae08682d3d044fd98bcb66742
parent9b69b847da95d5953c52f933591422d8f427c0d7 (diff)
downloadfsf-binutils-gdb-abc0f8d0f2b686700bda26a5c657050c20820a1d.zip
fsf-binutils-gdb-abc0f8d0f2b686700bda26a5c657050c20820a1d.tar.gz
fsf-binutils-gdb-abc0f8d0f2b686700bda26a5c657050c20820a1d.tar.bz2
Initialise bitfield.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elfxx-mips.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 585570f..79587e4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
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.
+
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
variables that are passed by reference to
m68hc11_get_relocation_value in case that function does not
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 7e0e510..ccd1c23 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -3956,6 +3956,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd,
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));