--- David Olofson <[EMAIL PROTECTED]> wrote: > On Wednesday 18 September 2002 11:46, Danny Smith wrote: > > --- David Olofson <[EMAIL PROTECTED]> wrote: > On Tuesday 17 > > > > I'm a bit late catching up with this thread. No one has mentioned the > > code in ld/pe-dll.c, function pe_implied_import_dll (filename) which > > extract def file from dll. Is that what you are trying to do? > > Yes. Is that's the code that's engaged when having gcc link directly with > a DLL? Dunno' what the exact problem with that is, but it was suggested > that it would be a good idea not to rely on it entirely just yet. >
It's pretty much the same code, but but uses bfd-isms (eg bfd_seek, bfd_bread) as wrappers for unistd.h/io.h functions > > > A gotcha with this is that some exported names in dll are aliases, the > > prime culprit being stdcall names. > > Uh oh. Why would that be an issue with ld, if it isn't with impgen.c...? > It is an issue with impgen. Try: % impgen c:/winnt/system32/user32.dll All the names should have stdcall decoration, but don't. Danny http://mobile.yahoo.com.au - Yahoo! Messenger for SMS - Always be connected to your Messenger Friends _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
