+2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * dlltool.c (make_one_lib): Test if internal_name was specified
+ by user before using it.
+
2004-09-02 Carlo Wood <carlo@alinoe.com>
PR binutils/351
why it did that, and it does not match what I see
in programs compiled with the MS tools. */
int idx = exp->hint;
- char const * internal_name =
- exp->internal_name ? exp->internal_name : xlate (exp->name);
+ /* If the user has specified an internal name, use it.
+ Ignore command line name translation options. */
+ char const * internal_name
+ = exp->internal_name != exp->name
+ ? exp->internal_name : xlate (exp->name);
si->size = strlen (internal_name) + 3;
si->data = xmalloc (si->size);