summaryrefslogtreecommitdiff
path: root/bfd/elf32-iq2000.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-iq2000.c')
-rw-r--r--bfd/elf32-iq2000.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/bfd/elf32-iq2000.c b/bfd/elf32-iq2000.c
index ebdd30300ff..c4261bf7492 100644
--- a/bfd/elf32-iq2000.c
+++ b/bfd/elf32-iq2000.c
@@ -454,9 +454,8 @@ iq2000_elf_check_relocs (abfd, info, sec, relocs)
{
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes, **sym_hashes_end;
- const Elf_Internal_Rela *rel;
- const Elf_Internal_Rela *rel_end;
- bfd_boolean changed = FALSE;
+ Elf_Internal_Rela *rel;
+ Elf_Internal_Rela *rel_end;
if (info->relocateable)
return TRUE;
@@ -500,20 +499,10 @@ iq2000_elf_check_relocs (abfd, info, sec, relocs)
if (memcmp (sec->name, ".debug", 6) == 0
|| memcmp (sec->name, ".stab", 5) == 0
|| memcmp (sec->name, ".eh_frame", 9) == 0)
- {
- ((Elf_Internal_Rela *) rel)->r_info
- = ELF32_R_INFO (ELF32_R_SYM (rel->r_info), R_IQ2000_32_DEBUG);
- changed = TRUE;
- }
+ rel->r_info = ELF32_R_INFO (ELF32_R_SYM (rel->r_info), R_IQ2000_32_DEBUG);
break;
}
}
-
- if (changed)
- /* Note that we've changed relocs, otherwise if !info->keep_memory
- we'll free the relocs and lose our changes. */
- (const Elf_Internal_Rela *) (elf_section_data (sec)->relocs) = relocs;
-
return TRUE;
}
@@ -940,7 +929,6 @@ iq2000_elf_print_private_bfd_data (abfd, ptr)
}
fputc ('\n', file);
- return TRUE;
}
static