ctypes list library

Dave Angel davea at ieee.org
Mon Jun 22 09:17:47 EDT 2009


Nick Craig-Wood wrote:
> luca72 <lucaberto at libero.it> wrote:
>   
>>  There is a command for ctypes that help me to know the entry points
>>  inside a library.
>>     
>
> I don't know..
>
> However nm on the library works quite well on the command line
>
> $ nm --defined-only -D /usr/lib/libdl.so
> 00000000 A GLIBC_2.0
> 00000000 A GLIBC_2.1
> 00000000 A GLIBC_2.3.3
> 00000000 A GLIBC_2.3.4
> 00000000 A GLIBC_PRIVATE
> 0000304c B _dlfcn_hook
> 000013b0 T dladdr
> 00001400 T dladdr1
> 00000ca0 T dlclose
> 00001170 T dlerror
> 00001490 T dlinfo
> 00001760 T dlmopen
> 00000ae0 T dlopen
> 000018d0 T dlopen
> 00000cf0 T dlsym
> 00000dd0 W dlvsym
>
> nm from the mingw distribution works on Windows too IIRC.
>
>   
For Windows, you can use the Microsoft tool DUMPBIN to display entry 
points (and other stuff) for a DLL.  Notice that a DLL may have almost 
any extension, including EXE, SYS, DRV, ...





More information about the Python-list mailing list