ffi.load and clib_extname

  • From: Daurnimator <quae@xxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 6 Mar 2014 15:13:29 -0500

I was hoping to play with VDSOs from LuaJIT; but the mechanism of
`clib_extname` stops me from getting a handle to the magic library via
`ffi.load`.

To get a handle to the always-in-memory shared object, the standard
mechanism is to call:`dlopen("linux-vdso.so.1",RTLD_LAZY)`
However; clib_extname prepends 'lib' if a '/' is not present is the first
argument.

Is there a way around this in the LuaJIT ffi?

Daurn.

Other related posts: