[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.1 (alpha) now available
- From: Mike Pall <mikelu-0509@...>
- Date: Sun, 11 Sep 2005 20:19:06 +0200
Glenn Maynard wrote:
> On Sun, Sep 11, 2005 at 05:05:03PM +0200, Mike Pall wrote:
> > But I guess this will assign more or less random values to the
> > DLL ordinals (bad for updates). At least the official symbols should
> > get fixed ordinals. Anyone have a script to autogenerate a .def file
> > from the headers?
> Why are the DLLs using ordinals at all? Seems like nothing but a binary
> compatibility nightmare.
Umm ... ok, my remark was maybe a bit short on details.
And there seems to be a behavioural difference between the
GNU and MS tools in that respect.
Every DLL has ordinals assigned to it. You can't avoid this.
It's inherent in the file structure (try objdump -x). But if
you keep the names, the ordinals are used as hints only
(for faster linking).
Unfortunately it seems that MS tools force linking by ordinals
if you specify then in a .def file. Technically it's possible
to link by name and still assign ordinals (to always get the
proper hints). But this seems to work with the GNU tools only.
So, no -- I certainly don't want a 'link by ordinal' nightmare.
I rather wanted 'link by name, but with consistent ordinal hints'.
I guess this doesn't work out, since the MS tools don't allow it. :-/
Well, forget about my idea then ...