If I am at the Linux command line, and I have a .so, is there a way to just like… try to load it, and see if it succeeds. I wouldn't want it to do anything, just load it and either error or not error. It's really awkward to launch the .NET executable that loads this .so naturally, I want a simpler test

@mcc Could you run `LD_PRELOAD=./path/to/lib.so /bin/ls`? (That should preload the dylib, IIUC?)

Follow

@isntitvacant @mcc Don't check untrusted stuff this way though, it will execute stuff from .init and .ctors sections (and anything `ls` calls that it may mask).

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml