Retrieving exported symbols from a dll

Brian Dessent brian@dessent.net
Mon Jul 17 20:03:00 GMT 2006


Erik Leunissen wrote:

> I want a list of symbols that are exported from a dll (pei-i386 format).
> My first inclination was to look for an option to dlltool or objdump
> that is specifically aimed for that purpose, but did not find it.
> 
> Therefore, I tend to revert to doing "objdump -x foo.dll" and scan the
> output using a home grown recipe. However, that is not nearly as
> straightforward as what I was looking for.
> 
> Am I right to start from "objdump -x foo.dll", or is there something
> more straightforward?

It's not exactly on-topic for this list but the mingw project has a
(GPL) utility 'pexports' which does exactly this.  Its output is a list
of the exports of the DLL, in .DEF file format.

Brian



More information about the Binutils mailing list