bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DLL replacement problem


From: Nick Clifton
Subject: Re: DLL replacement problem
Date: Mon, 24 May 2004 16:08:57 +0100
User-agent: Mozilla Thunderbird 0.6 (X11/20040502)

Hi Nico,

  (I apologise for the long delay in answering this email)

I think I have found a problem with GNU ld version 2.13.90 20021005.

It is worth noting that v2.15 of GNU ld (and the entire GNU Binutils package) has now been released. It may not fix this particular problem but it would certainly be worth your while to upgrade to those sources.


Now I have rewritten the DLL using DEV-C and compiled it using the Mingw32
gnu compiler. I expected to be able to replace the old DLL file with the
new DLL file. This is true for programs created with Delphi, but I cannot
do this for programs created with the Mingw32 compiler (which uses ld).
When a function is called, the function is not executed. Both DLLs are 100%
identical when it comes to the functions and their definitions, but the
order of the routines is different.
I think ld links a DLL by looking at the index instead of looking at the
function name, this would explain this behaviour.

This is almost certainly the case. You should be able to create a DEF file to overcome this problem. I would also suggest reading the linker manual's section on x86 specific options as some of these might be able to help you as well.

Cheers
  Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]