This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Add --identify option to dlltool


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]