first of all, congratulations on your work! I only started looking into executable formats recently and am an absolute beginner to the topic, but found your work one of the most interesting things in recent times.
While playing around with it, I've tried building an ape binary on macOS. I've had the same problems mentioned in https://github.com/jart/cosmopolitan/issues/80
, so I've tried using the musl toolchain. Unfortunately the produced executable doesn't work on my host, although it runs fine on linux.
Is there something gcc-specific your work relies on? What blocks it from working with musl?
I apologise if I'm overlooking something basic, I just got recently started with learning about executables and compilers.