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]

Re: LoadLibrary may fail if DLL is built with gcc -shared


----- Original Message -----
From: "Nick Clifton" <nickc@redhat.com>
To: <fabrizio.ge@tiscali.it>
Cc: <binutils@sources.redhat.com>
Sent: Friday, April 25, 2003 4:04 PM
Subject: Re: LoadLibrary may fail if DLL is built with gcc -shared


> Please could you try applying the attached (untested) patch,
> rebuilding the linker and then seeing if it creates a DLL which works
> for you.
>
I'm afraid the result is the same. However, I wrote another patch. According
to the few tests I've made, it seems to work. It can be summarized as:

pe-dll.c (fill_edata): scan table pe_dll->exports, which is sorted
alphabetically, instead of exported_symbols, which is sorted by ordinal

The patch should be attached

Bye
Fabrizio


Attachment: ld-patch.txt
Description: Text document


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