[Patch] Add --identify option to dlltool

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Sat Nov 8 16:51:00 GMT 2008


On Sat, Nov 08, 2008 at 12:31:09AM -0500, Charles Wilson wrote:
>To solve a problem with libtool on cygwin (dlpreopen), I needed a
>mechanism to determine the DLL associated with a specified import
>library. I was surprised to discover that there does not seem to be an
>easy way to do this, so I added the functionality to dlltool.
>
>$ dlltool --identify /usr/lib/libz.dll.a
>cygz.dll
>
>$ dlltool.exe --identify /usr/lib/mingw/libz.dll.a
>mgwz.dll
>
>--
>Chuck

>2008-11-08  Charles Wilson  <...>
>
>	Add --identify option to dlltool.
>
>	* binutils/dlltool.c: Added new global variables
>	identify_imp_name and identify_dll_name.
>	(identify_dll_for_implib, identify_search_archive,
>	identify_search_member, identify_process_section_p,
>	identify_search_section): New functions.
>	(usage): Added --identify.
>	(long_options): Ditto.
>	(main): Handle --identify option.

This looks useful but I think it needs a few more comments.

cgf



More information about the Binutils mailing list