A Saturday 29 March 2008 21:52:47, Nick Miles wrote:
> Hi,
>
> Just got some code to compile and also produce a lovely DLL.  The problem
> is the DLL is unusable and the only thing I can see that is odd is this
> from PEDUMP:
>
> Imports Table:
>   coredll.dll
>   OrigFirstThunk:  001DB1BC (Unbound IAT)
>   TimeDateStamp:   00000000 -> Thu Jan 01 00:00:00 1970
>   ForwarderChain:  00000000
>   First thunk RVA: 001DB2D4
>   Ordn  Name
>     29  _wcsdup
>
>   COREDLL
>   OrigFirstThunk:  001DB1C8 (Unbound IAT)
>   TimeDateStamp:   00000000 -> Thu Jan 01 00:00:00 1970
>   ForwarderChain:  00000000
>   First thunk RVA: 001DB2E0
>   Ordn  Name
>    174  CreateFileW
>    243  DeleteFileW
>    ..... continues with no _wcsdup
>
> Shouldn't all the imports under COREDLL be under coredll.dll as well?
>
> Also I can't find _wcsdup referenced anywhere in the code!
>

You're calling wcsdup somewhere, and libceoldname.a resolves
that automatically to _wcsdup for compatilibity.

> I have built another DLL that works a treat so I don't think it's me.
>
> Using the latest mingw32ce compiler binaries on Windows to compile under
> Cygwin.
>

This has been talked about before several times.  The fix is very easy
but no one has ever done that.  I've also asked before, which is the
form that works for everyone, and noone replied.  The easiest
may probably be to change libceoldname.a.  It's a matter of changing
mingw/Makefile.in, where it reads:

libceoldname.a: moldname-coredll.def $(MOLD_OBJS)
        $(DLLTOOL) --as $(AS) -k -U     \
                --dllname coredll.dll   \
                --def moldname-coredll.def      \
                --output-lib $@
        $(AR) rc $@ $(MOLD_OBJS)
        $(RANLIB) $@

Change the coredll.dll to COREDLL.  Since no one who was hit
by the problem (it seems to depend on CE version or
machine/manufacturer) reported which is the correct form for
them, coredll.dll or COREDLL, we haven't fixed it yet.

Can you try it, please?  Or perhaps someone can provide him
a prebuilt libceoldname.a with the fix?  I'm not setup
to build one right now.

-- 
Pedro Alves

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to