When --output-exp is given, def_name() and def_library() functions ignore a DLL name given by NAME or LIBRARY commands in a DEF file.
Created attachment 4451 [details] Proposed patch
CVSROOT: /cvs/src Module name: src Changes by: ktietz@sourceware.org 2010-12-01 14:15:06 Modified files: binutils : ChangeLog dlltool.c Log message: 2010-12-01 Kai Tietz <kai.tietz@onevision.com> PR binutils/11065 * dlltool.c (dll_name_set_by_exp_name): New variable. (def_name): Allow setting of dll_name by .def file. (def_library): Likewise. (main): Set dll_name_set_by_exp_name, if dll_name is set indirect by exp_name. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1722&r2=1.1723 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/dlltool.c.diff?cvsroot=src&r1=1.101&r2=1.102
Fixed on head