3 ms·
Uh, whatever. This isn't about LuaJIT, nor any JIT, nor C, nor any high-level programming language FFI. ELF != C C does not imply ELF ELF does not
by cryptonector 8y ago
Uh, whatever. This isn't about LuaJIT, nor any JIT, nor C, nor any high-level programming language FFI.
ELF != C
C does not imply ELF
ELF does not imply C
This is about entirely and only dynamic linking vs. static linking. Selling it as anything else is bunk and click-bait.
And yes, dlsym(3) should return the address of the PLT, not the direct address of the function: so that dlsym(foo, "bar") == bar (when you can link with whatever object provides "bar").