[PATCH v3 6/8] rl78: return false from relax_section error path
Harshit Kumar
harshit7kr@gmail.com
Sat Nov 7 07:51:01 GMT 2026
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>
---
v3:
- Unchanged from v2.
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 490bb4e0..b684b891 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;
}
--
2.55.0
More information about the Binutils
mailing list