Open daurnimator opened 5 years ago
/memfd:foo
What a horrible design decision on the behalf of Linux (and Lennart Poettering/Greg KH that overlooked kdbus that memfd came from).... There should be two forward slashes // so that this is not ambiguous....., or perhaps start with a null byte, but that can be problematic even if it is not ambiguous.
I didn't see the answer in there. FWIW I tried it with the following C program:
Where
elf.xxd
is created withxxd -i < /usr/bin/ls > elf.xxd
And I see:
Originally posted by @daurnimator in https://github.com/ziglang/zig/pull/2527