aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-08 09:49:14 +0000
committerNick Clifton <nickc@redhat.com>2004-10-08 09:49:14 +0000
commitd67a454c81bb8395692342d517d935e8bcaa882e (patch)
treeeddbfb75a65e130a7bdf12264e20e25772c8a11b /binutils/dlltool.c
parent61ee279cebdbb701d5cfcc353c76bd930ba56eff (diff)
downloadgdb-d67a454c81bb8395692342d517d935e8bcaa882e.zip
gdb-d67a454c81bb8395692342d517d935e8bcaa882e.tar.gz
gdb-d67a454c81bb8395692342d517d935e8bcaa882e.tar.bz2
dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04 patches.
doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index c9a6738..9d1d6f2 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -2517,17 +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;
- /* 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->size = strlen (xlate (exp->name)) + 3;
si->data = xmalloc (si->size);
si->data[0] = idx & 0xff;
si->data[1] = idx >> 8;
- strcpy (si->data + 2, internal_name);
+ strcpy (si->data + 2, xlate (exp->name));
}
break;
case IDATA7: