This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polyfill for using memfd_create with old glibc (#59)
While memfd_create is old (Linux 3.17, October 2014), its glibc wrapper didn't arrive until much later (glibc 2.27, February 2018). Some systems thus still don't have the right glibc. This can cause issues both when running and when compiling moolib. One solution is to "skip" glibc and just invoke memfd_create by issuing a syscall directly to the kernel. This just requires the kernel to be recent enough, both at compile-time and at runtime. (Though ideally one would like to be able to build on old kernels too).
- Loading branch information