[PATCH v3 9/8] ft32: return false from relax_section error path
Harshit Kumar
harshit7kr@gmail.com
Fri Nov 13 09:29:38 GMT 2026
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>
---
bfd/elf32-ft32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c
index 3e4e6f3988..50aa8a89b6 100644
--- a/bfd/elf32-ft32.c
+++ b/bfd/elf32-ft32.c
@@ -1237,7 +1237,7 @@ ft32_elf_relax_section (bfd *abfd,
error_return:
free (free_relocs);
- return true;
+ return false;
}
#define ELF_ARCH bfd_arch_ft32
--
2.55.0
More information about the Binutils
mailing list