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


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

Re: ld -shared and @ordinals in .def files



> ld -shared (prerelease binutils-20000722-1) appears to ignore the
> ordinal values supplied in a .def when building dlls.

Sorry for taking so long to get to this.  Please try this patch
against the binutils CVS sources:

Index: pe-dll.c
===================================================================
RCS file: /cvs/src/src/ld/pe-dll.c,v
retrieving revision 1.14
diff -p -2 -r1.14 pe-dll.c
*** pe-dll.c	2000/07/19 00:04:04	1.14
--- pe-dll.c	2000/09/14 22:54:11
*************** fill_edata (abfd, info)
*** 712,716 ****
  	      strcpy (enamestr, ename);
  	      enamestr += strlen (enamestr) + 1;
! 	      bfd_put_16 (abfd, i, (void *) eordinals);
  	      enameptrs++;
  	      pe_def_file->exports[s].hint = hint++;
--- 712,716 ----
  	      strcpy (enamestr, ename);
  	      enamestr += strlen (enamestr) + 1;
! 	      bfd_put_16 (abfd, pe_def_file->exports[s].ordinal, (void *) eordinals);
  	      enameptrs++;
  	      pe_def_file->exports[s].hint = hint++;


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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