In the examples at http://danny.backx.info/download/cegcc/demo.tar.gz
you can see source and compiled version for two DLLs, and objdump for
both.
The lib1.dll works, lib2.dll doesn't, as shown in testapi2 output :
Started processing DLL(lib1.dll)
lib1.dll doesn't know about open
lib1.dll implements XmlPrologStateInitExternalEntity
(0x01821760)
LoadLibrary(lib2.dll) : cannot load DLL -> error 193
The libs are based on almost identical source (one of the libexpat
source files, with stuff incrementally compiled out until I got a
working version).
The objdump files show that the DLL stops working once the text segment
has a size exceeding 0x1000.
Does anyone have more info ? Hints, clues, .. ?
Danny
lib1.dll Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000fb8 00011000 00011000 00000400 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000018 00012000 00012000 00001400 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .rdata 00000198 00013000 00013000 00001600 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .edata 00000079 00014000 00014000 00001800 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .idata 000001dc 00015000 00015000 00001a00 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .reloc 0000010c 00016000 00016000 00001c00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
lib2.dll Sections:
Idx Name Size VMA LMA File off Algn
0 .text 0000101c 00011000 00011000 00000400 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000018 00013000 00013000 00001600 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .rdata 00000198 00014000 00014000 00001800 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .edata 00000079 00015000 00015000 00001a00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .idata 000001dc 00016000 00016000 00001c00 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .reloc 00000118 00017000 00017000 00001e00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel