diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf-m10300.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c14a3bc..81d2785 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2017-10-09 H.J. Lu <hongjiu.lu@intel.com> + * elf-m10300.c (mn10300_elf_check_relocs): Don't free cached + isymbuf. + +2017-10-09 H.J. Lu <hongjiu.lu@intel.com> + * elf32-bfin.c (bfin_size_dynamic_sections): Don't create the .interp section with "ld --no-dynamic-linker". diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index 9214a57..b5951c6 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -1377,7 +1377,7 @@ mn10300_elf_check_relocs (bfd *abfd, result = TRUE; fail: - if (isymbuf != NULL) + if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf) free (isymbuf); return result; |