From ac4487b159a9f2ea750d4f1a79cd209204a83186 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 26 Nov 2025 21:45:02 -0700 Subject: [PATCH] Sanitize commas in auto-split names --- src/util/split.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/split.rs b/src/util/split.rs index 4c7b722..6641fd1 100644 --- a/src/util/split.rs +++ b/src/util/split.rs @@ -1476,8 +1476,8 @@ fn auto_unit_name( length_limit: 20, ..Default::default() }) - // Also replace $ to avoid issues with build.ninja - .replace('$', "_"); + // Also replace characters that break downstream tooling (build.ninja, linker, etc) + .replace(['$', ','], "_"); let mut unit_name = format!("auto_{}_{}", name, section_name.trim_start_matches('.')); // Ensure the name is unique if unit_exists(&unit_name, obj, new_splits) {