diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-12-23 20:17:58 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-12-23 20:17:58 +0000 |
commit | 970e3d346468184aaf7fa68c7f6fd6be644d280b (patch) | |
tree | 182171ce5145b20459c7fdb910c8c1e6cb33f3b3 /bfd/elf32-rl78.c | |
parent | d925368d2c762338ec787dfad8e6afc10b5afa0d (diff) | |
download | binutils-redhat-970e3d346468184aaf7fa68c7f6fd6be644d280b.tar.gz |
bfd/
* elf32-rl78.c (prev_alignment, sec_start): Remove unused variables.
Diffstat (limited to 'bfd/elf32-rl78.c')
-rw-r--r-- | bfd/elf32-rl78.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/bfd/elf32-rl78.c b/bfd/elf32-rl78.c index 432a98eb18..6d52231c15 100644 --- a/bfd/elf32-rl78.c +++ b/bfd/elf32-rl78.c @@ -2010,14 +2010,12 @@ rl78_elf_relax_section Elf_Internal_Rela * srel; Elf_Internal_Rela * irelend; Elf_Internal_Rela * next_alignment; - Elf_Internal_Rela * prev_alignment; bfd_byte * contents = NULL; bfd_byte * free_contents = NULL; Elf_Internal_Sym * intsyms = NULL; Elf_Internal_Sym * free_intsyms = NULL; Elf_External_Sym_Shndx * shndx_buf = NULL; bfd_vma pc; - bfd_vma sec_start; bfd_vma symval ATTRIBUTE_UNUSED = 0; int pcrel ATTRIBUTE_UNUSED = 0; int code ATTRIBUTE_UNUSED = 0; @@ -2043,8 +2041,6 @@ rl78_elf_relax_section symtab_hdr = &elf_tdata (abfd)->symtab_hdr; shndx_hdr = &elf_tdata (abfd)->symtab_shndx_hdr; - sec_start = sec->output_section->vma + sec->output_offset; - /* Get the section contents. */ if (elf_section_data (sec)->this_hdr.contents != NULL) contents = elf_section_data (sec)->this_hdr.contents; @@ -2103,9 +2099,6 @@ rl78_elf_relax_section /* This will either be NULL or a pointer to the next alignment relocation. */ next_alignment = internal_relocs; - /* This will be the previous alignment, although at first it points - to the first real relocation. */ - prev_alignment = internal_relocs; /* We calculate worst case shrinkage caused by alignment directives. No fool-proof, but better than either ignoring the problem or @@ -2144,7 +2137,6 @@ rl78_elf_relax_section displacements across an alignment boundary, just in case. Note that this only affects relocations to the same section. */ - prev_alignment = next_alignment; next_alignment += 2; while (next_alignment < irelend && (ELF32_R_TYPE (next_alignment->r_info) != R_RL78_RH_RELAX |