This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH to ld/pe-dll.c. Ignore asm prefix when filtering for excluded exports


Hello

The recent changes to dlltool.c to allow the default asm_prefix of '_'
to be overriden expose a bug in the filter for excluded symbols in
pe-dll.c: auto_export.

Actually the bug was was there before, since fastcall symbols already
use a different prefix '@' than the standard '_'.


This fixes.


2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>

	* pe-dll.c (auto_export):  Filter on just the import prefix,
	"_imp_", not "_imp__".


Index: pe-dll.c
===================================================================
RCS file: /cvs/src/src/ld/pe-dll.c,v
retrieving revision 1.71
diff -c -3 -p -r1.71 pe-dll.c
*** pe-dll.c	24 Jun 2004 04:46:27 -0000	1.71
--- pe-dll.c	13 Jul 2004 07:49:32 -0000
*************** auto_export (bfd *abfd, def_file *d, con
*** 398,404 ****
      libname = lbasename (abfd->my_archive->filename);
  
    /* We should not re-export imported stuff.  */
!   if (strncmp (n, "_imp__", 6) == 0)
      return 0;
  
    for (i = 0; i < d->num_exports; i++)
--- 398,404 ----
      libname = lbasename (abfd->my_archive->filename);
  
    /* We should not re-export imported stuff.  */
!   if (strncmp (n, "_imp_", 5) == 0)
      return 0;
  
    for (i = 0; i < d->num_exports; i++)


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]