diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-09-04 10:08:11 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-09-04 10:08:11 +0000 |
commit | 5df31fad477b5fcf31de404fa11b35a9b5768b59 (patch) | |
tree | 4e1ad16e36b0603df7b23842791d76891d647430 | |
parent | eb1352eda007d07f0a666b7f42f4681fd3ed4945 (diff) | |
download | gdb-5df31fad477b5fcf31de404fa11b35a9b5768b59.zip gdb-5df31fad477b5fcf31de404fa11b35a9b5768b59.tar.gz gdb-5df31fad477b5fcf31de404fa11b35a9b5768b59.tar.bz2 |
* dlltool.c (make_one_lib): Test if internal_name was specified
by user before using it.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/dlltool.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8cfd193..2afb2a1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 7688c8b..c9a6738 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -2517,8 +2517,11 @@ make_one_lib_file (export_type *exp, int i) 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); |