Skip to content

Commit 87e7396

Browse files
committed
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
1 parent 90fda04 commit 87e7396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sys/src/cmd/ld/dwarf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ addhistfile(char *zentry)
518518
static struct {
519519
int file;
520520
vlong line;
521-
} includestack[16];
521+
} includestack[64];
522522
static int includetop;
523523
static vlong absline;
524524

0 commit comments

Comments
 (0)