ft32: return false from relax_section error path In ft32_elf_relax_section, the error_return: block returned true, so failures to read the section contents, local symbols or relocations, and failures from elf32_ft32_relax_delete_bytes, were reported as success and relaxation continued with corrupt state. Correct error_return: to return false. Signed-off-by: Harshit Kumar <harshit7kr@gmail.com>
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c index 3e4e6f3..50aa8a8 100644 --- a/bfd/elf32-ft32.c +++ b/bfd/elf32-ft32.c
@@ -1237,7 +1237,7 @@ error_return: free (free_relocs); - return true; + return false; } #define ELF_ARCH bfd_arch_ft32