summaryrefslogtreecommitdiff
path: root/bfd/elf32-m68hc1x.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-23 11:18:11 +0000
committerNick Clifton <nickc@redhat.com>2005-02-23 11:18:11 +0000
commita151542d24020973d448a9bfb53f894e6d06c479 (patch)
treee49ea467dbfedf12a7ff69e98013624c6d0111f0 /bfd/elf32-m68hc1x.c
parentc5af524e4b0f8ba81877f7dc0c89fee315d20556 (diff)
downloadbinutils-redhat-a151542d24020973d448a9bfb53f894e6d06c479.tar.gz
(elf32_m68hc11_relocate_section): Initialise variables that are passed by
reference to m68hc11_get_relocation_value in case that function does not initialise them.
Diffstat (limited to 'bfd/elf32-m68hc1x.c')
-rw-r--r--bfd/elf32-m68hc1x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-m68hc1x.c b/bfd/elf32-m68hc1x.c
index eeab9d53f4..a0ba487ea1 100644
--- a/bfd/elf32-m68hc1x.c
+++ b/bfd/elf32-m68hc1x.c
@@ -1000,7 +1000,7 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes;
Elf_Internal_Rela *rel, *relend;
- const char *name;
+ const char *name = NULL;
struct m68hc11_page_info *pinfo;
const struct elf_backend_data * const ebd = get_elf_backend_data (input_bfd);
@@ -1021,13 +1021,13 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
unsigned long r_symndx;
Elf_Internal_Sym *sym;
asection *sec;
- bfd_vma relocation;
+ bfd_vma relocation = 0;
bfd_reloc_status_type r = bfd_reloc_undefined;
bfd_vma phys_page;
bfd_vma phys_addr;
bfd_vma insn_addr;
bfd_vma insn_page;
- bfd_boolean is_far;
+ bfd_boolean is_far = FALSE;
r_symndx = ELF32_R_SYM (rel->r_info);
r_type = ELF32_R_TYPE (rel->r_info);