mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
The constructor took the program object with an empty name for the main program, which is how glibc reports it. musl reports the main program with its path, or "/proc/self/exe" in a static executable, so on musl targets --large-pages found no segment and left the code file-mapped. The constructor now takes the executable segment that holds its own code: the runtime links into the executable, so that is the main program's code under either C library. scr_text_pages.test.ts runs its check against a static musl build made with zig as well as the glibc build.