[binutils-gdb] visium MAX_MEM_FOR_RS_ALIGN_CODE
Alan Modra
amodra@sourceware.org
Wed Sep 3 05:37:45 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=74fe8e29dc61bbe2c258c2c13f4b91f99faf6571
commit 74fe8e29dc61bbe2c258c2c13f4b91f99faf6571
Author: Alan Modra <amodra@gmail.com>
Date: Tue Sep 2 19:13:36 2025 +0930
visium MAX_MEM_FOR_RS_ALIGN_CODE
Commit 7ca6020a4e52 "tidy target HANDLE_ALIGN" didn't account for
the "fix" amount emitted by visium_handle_align. This didn't show up
as a problem due to frag alignment hiding the error, until I started
messing with struct frag.
* config/tc-visium.h (MAX_MEM_FOR_RS_ALIGN_CODE): Correct.
Diff:
---
gas/config/tc-visium.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-visium.h b/gas/config/tc-visium.h
index 8be7f77027c..d25a81bb9e9 100644
--- a/gas/config/tc-visium.h
+++ b/gas/config/tc-visium.h
@@ -45,7 +45,7 @@
#define tc_fix_adjustable(FIXP) visium_fix_adjustable (FIXP)
extern bool visium_fix_adjustable (struct fix *);
-#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) (4 + 1)
+#define MAX_MEM_FOR_RS_ALIGN_CODE(p2align, max) (3 + 4 + 1)
#define HANDLE_ALIGN(SEC, FRAGP) \
if ((FRAGP)->fr_type == rs_align_code) \
visium_handle_align (FRAGP);
More information about the Binutils-cvs
mailing list