From 566f2c27037e2b9b741e09e7de42a895017a7c99 Mon Sep 17 00:00:00 2001 From: Vlad Brezae Date: Tue, 30 Sep 2025 14:05:47 +0200 Subject: [PATCH] [mono][aot] Increase the max symbol size Long symbol names were truncated, leading to duplicate names in the generated assembly file. This was making the compiler fail due to duplicate symbol names. --- src/mono/mono/mini/aot-compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/aot-compiler.c b/src/mono/mono/mini/aot-compiler.c index 5349e634ed9684..9598e9d3f20f62 100644 --- a/src/mono/mono/mini/aot-compiler.c +++ b/src/mono/mono/mini/aot-compiler.c @@ -638,7 +638,7 @@ is_direct_pinvoke_enabled (const MonoAotCompile *acfg) /* Wrappers around the image writer functions */ -#define MAX_SYMBOL_SIZE 256 +#define MAX_SYMBOL_SIZE 1024 #if defined(TARGET_WIN32) && defined(TARGET_X86) static const char *