From a996a8113ef75d69655b37dfa595f1a21f1fc1e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 22 May 2026 04:11:06 +0000 Subject: [PATCH] 6l: declare cpos() in l.h asmbelf() in asm.c uses cpos() to capture file offsets, but cpos() was only declared locally in dwarf.c. Add the declaration to l.h alongside cflush(). https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs --- sys/src/cmd/6l/l.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/cmd/6l/l.h b/sys/src/cmd/6l/l.h index 8947ecad5..6477e72f2 100644 --- a/sys/src/cmd/6l/l.h +++ b/sys/src/cmd/6l/l.h @@ -369,6 +369,7 @@ Prog* brchain(Prog*); Prog* brloop(Prog*); void buildop(void); void cflush(void); +vlong cpos(void); void ckoff(Sym*, long); Prog* copyp(Prog*); double cputime(void);