This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] Add --identify option to dlltool
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: binutils at sourceware dot org, Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- Date: Sat, 8 Nov 2008 11:50:50 -0500
- Subject: Re: [Patch] Add --identify option to dlltool
- References: <4915241D.9020903@cwilson.fastmail.fm>
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