I want to create a shared object in zig that runs some code when it enters & exits a program via LD_PRELOAD, though I can't find much relating to this kind of thing.
The only way I can think of doing this is by just creating a 'wrapper' C program which has __attribute__((constructor)) and calls into my zig code, but it does seem a little clunky.