From: DJ Delorie Date: Wed, 11 Nov 1998 18:50:40 +0000 (+0000) Subject: * pe-dll.c (fill_edata): don't strip underscores X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a18b9a3df3f87d9e4e9eb1fbf58f3effa248cd48;p=binutils-gdb.git * pe-dll.c (fill_edata): don't strip underscores --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 9976bc1dadf..e9a3d5bd493 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +Wed Nov 11 13:44:54 1998 DJ Delorie + + * pe-dll.c (fill_edata): don't strip underscores + Tue Nov 10 21:28:19 1998 DJ Delorie * ld.texinfo: added i386pe option summary diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 25ea4e3de66..aaf1cb1e48e 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -565,7 +565,7 @@ fill_edata (abfd, info) { char *ename = pe_def_file->exports[s].name; bfd_put_32 (abfd, ERVA (enamestr), (void *) enameptrs); - strcpy (enamestr, ename[0] == '_' ? ename + 1 : ename); + strcpy (enamestr, ename); enamestr += strlen (enamestr) + 1; bfd_put_16 (abfd, i, (void *) eordinals); enameptrs++;