From d67a454c81bb8395692342d517d935e8bcaa882e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 8 Oct 2004 09:49:14 +0000 Subject: dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04 patches. doc/binutils.texi (dlltool): Revert 2004-09-06 patch. --- binutils/ChangeLog | 6 ++++++ binutils/dlltool.c | 10 ++-------- binutils/doc/binutils.texi | 8 +++----- 3 files changed, 11 insertions(+), 13 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 95b3568..a04a514 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2004-10-08 Aaron W. LaFramboise + + * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04 + patches. + * doc/binutils.texi (dlltool): Revert 2004-09-06 patch. + 2004-10-07 Alexandre Oliva * readelf.c (get_machine_flags): Don't fall through into m68k cpu 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: diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 20132c8..0a80a0d 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -3042,15 +3042,13 @@ means! @itemx --add-underscore Specifies that when @command{dlltool} is creating the exports file it should prepend an underscore to the names of the exported functions. -The option is ignored for symbols with an explicit internal name -specification provided in a .def file. @item -k @itemx --kill-at Specifies that when @command{dlltool} is creating the exports file it -should not append the string @samp{@@ } The option is ignored -for symbols with an explicit internal name specification provided in a -.def file. +should not append the string @samp{@@ }. These numbers are +called ordinal numbers and they represent another way of accessing the +function in a DLL, other than by name. @item -A @itemx --add-stdcall-alias -- cgit v1.1