Alex Rønne Petersen
Alex Rønne Petersen
This isn't surprising; `zig1.c` is created by `wasm2c` and the code we generate there is less than ideal, just as the code we generate in the C backend (which is...
I'd written that paragraph while confusing `zig1.c` and `zig2.c`. What we would need for `zig1.c` is a `wasm2c` option; the C backend has nothing to do with `zig1.c`. (However, I...
> My object format knowledge is as good as noob, no idea why the flag isn't effective. I wonder if there's some security hardening nonsense going on where the kernel...
Ok, so as far as I can tell, neither the Linux kernel nor glibc nor musl respect `PT_GNU_STACK` or `GNU_PROPERTY_STACK_SIZE` for the main thread. For `zig2`, we're fine because we...
FWIW, this works for me on Ubuntu 23.10 (x86_64). You'll have to step into LLVM to figure out what's going wrong: https://github.com/ziglang/zig/blob/d83a3f1746c81026d1cf0244156513c9b5a2a9f6/src/mingw.zig#L285-L289
Try `x86_64-linux-gnu.2.24` instead, or whatever glibc version you actually have. Zig defaults to 2.28, which has both of those functions.