From 37aaa18baf16d7926f5f0437c6b606a285817645 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 21 May 2026 19:53:44 +0000 Subject: [PATCH] 9src/cc: exec dw2elf via /bin/dw2elf (Plan9 union mount path) apexp-sh bind-mounts $cputype/bin/ape into /bin, so all APE binaries are reachable as /bin/. Using the arch-qualified path /$objtype/bin/ape/dw2elf was wrong. https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs --- sys/src/ape/9src/cc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/src/ape/9src/cc.c b/sys/src/ape/9src/cc.c index 587a667cb..0540a1aa6 100644 --- a/sys/src/ape/9src/cc.c +++ b/sys/src/ape/9src/cc.c @@ -236,8 +236,7 @@ main(int argc, char *argv[]) for(i = 0; i < srcs.n; i++) append(&dw2elf_cmd, changeext(srcs.strings[i], "dwtypes")); - doexec(smprint("/%s/bin/ape/dw2elf", ot->name), - &dw2elf_cmd); + doexec("/bin/dw2elf", &dw2elf_cmd); } }