update supported OpenBSD versions#897
Conversation
Cosmopolitan libc does not work after the changes in OpenBSD 7.5+ to generally disallow direct syscall() use except from the OS's own libc.
|
Many thanks @sthen for the heads up and the patch! A couple of questions:
|
|
They're slightly off with the version number, but https://github.com/jart/cosmopolitan?tab=readme-ov-file#support-vector says "7.3 or earlier", and that's because of this issue. There is an issue open at jart/cosmopolitan#1263, it covers a few different things though;
I didn't look too deeply into how cosmocc handles syscalls on various OS but I suspect that the only way to get it working on modern OpenBSD would be for the extracted binary to call into libc stubs rather than using syscall() itself - Go did this, for example (golang/go#63900) The best reference for how the restriction mechanism works is possibly https://marc.info/?l=openbsd-tech&m=170205367232026&w=2 |
|
Awesome, TY! I subscribed to the issue and will follow related updates to make sure we stay aligned with supported versions 🙏 |
Cosmopolitan libc does not work after the changes in OpenBSD 7.5+ to generally disallow direct syscall() use except from the OS's own libc.