[binutils-gdb] rl78: return false from relax_section error path
Jan Beulich
jbeulich@sourceware.org
Mon Nov 9 10:12:58 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b04483c4ba6a06cbe6c96088c2d657546defc546
commit b04483c4ba6a06cbe6c96088c2d657546defc546
Author: Harshit Kumar <harshit7kr@gmail.com>
Date: Mon Nov 9 11:08:08 2026 +0100
rl78: return false from relax_section error path
In rl78_elf_relax_section, the error_return: block previously returned
true, causing OOM and I/O failures during section reading to silently
succeed and proceed with corrupt state. Correct error_return: to return
false.
Signed-off-by: Harshit Kumar <harshit7kr@gmail.com>
Diff:
---
bfd/elf32-rl78.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/elf32-rl78.c b/bfd/elf32-rl78.c
index 490bb4e0dfe..b684b891199 100644
--- a/bfd/elf32-rl78.c
+++ b/bfd/elf32-rl78.c
@@ -2586,7 +2586,7 @@ rl78_elf_relax_section (bfd *abfd,
free (free_intsyms);
- return true;
+ return false;
}
More information about the Binutils-cvs
mailing list