tags:

views:

96

answers:

1

Hi,

I am just wondering if there is an Linux equivalent to Novels nlist(). nlist() does the following:

Privileged processes calling nlist() should beware of the possibility of an unexpected file being substituted as the operand.

The nlist() function returns symbol table information for the specified symbol names, for the executable file whose name is supplied as an argument.

Thanks, Rob

A: 

The function that comes closest that I know about is dlinfo. It is completely undocumented in glibc (no man page, nothing in the info files), but is apparently a clone of a Solaris interface, which is documented:

http://docs.sun.com/app/docs/doc/816-5168/dlinfo-3c?a=view

You can find it declared on Linux in dlfcn.h

Jack Lloyd