From 87e7396c078350ca08665e9d90d1cf8eee29077b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 22 May 2026 08:22:05 +0000 Subject: [PATCH] ld/dwarf: increase includestack from 16 to 64 APE headers have deep transitive include chains that exceed the original Go-era limit of 16. 64 is enough for real-world nesting. https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs --- sys/src/cmd/ld/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/ld/dwarf.c b/sys/src/cmd/ld/dwarf.c index 6592104d9..a4e8e0b9b 100644 --- a/sys/src/cmd/ld/dwarf.c +++ b/sys/src/cmd/ld/dwarf.c @@ -518,7 +518,7 @@ addhistfile(char *zentry) static struct { int file; vlong line; -} includestack[16]; +} includestack[64]; static int includetop; static vlong absline;