aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 7b3bcc6..8ae1930 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -4122,7 +4122,7 @@ _bfd_mips_elf_check_relocs (abfd, info, sec, relocs)
&& ELF_R_TYPE (abfd, r->r_info) != R_MIPS16_26)
break;
- if (! info->keep_memory)
+ if (elf_section_data (o)->relocs != sec_relocs)
free (sec_relocs);
if (r < rend)