[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-users] Re: libbfd, libtool & Win32
From: |
Danny Smith |
Subject: |
Re: [Mingw-users] Re: libbfd, libtool & Win32 |
Date: |
Wed, 18 Sep 2002 20:29:59 +1000 (EST) |
--- David Olofson <address@hidden> wrote: > On Wednesday 18
September 2002 11:46, Danny Smith wrote:
> > --- David Olofson <address@hidden> 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
- Re: [Mingw-users] Re: libbfd, libtool & Win32, (continued)
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Earnie Boyd, 2002/09/16
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Guido Draheim, 2002/09/16
- Message not available
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Guido Draheim, 2002/09/16
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Max Bowsher, 2002/09/17
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/17
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Guido Draheim, 2002/09/17
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Danny Smith, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32,
Danny Smith <=
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Danny Smith, 2002/09/18
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/20
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Guido Draheim, 2002/09/20
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Earnie Boyd, 2002/09/20
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/23
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/23
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Earnie Boyd, 2002/09/23
- Re: [Mingw-users] Re: libbfd, libtool & Win32, David Olofson, 2002/09/23
- Re: [Mingw-users] Re: libbfd, libtool & Win32, Earnie Boyd, 2002/09/23