On Sat, 2009-11-07 at 19:14 +0100, Danny Backx wrote:
> But still the IAT remains NULL. I suspect that the code that Kai also
> patched in ld/emultempl/pep.em and scripttempl/armcoff.sc and
> scripttempl/pep.sc might be related.
>
> Can anyone tell me how to interpret the ld scripts ? I haven't the
> faintest idea of how they work.
So now I'm reading the docs on linker scripts :-)
I find that it's using arm_wince_pe.x which appears to be generated from
pe.sc, not pep.sc . Only the latter was in Kais patch so unless someone
tells me I'm on the wrong track, I'll be looking into porting Kais
change from pep.sc into pe.sc .
BTW I am not using Vincents method to invoke v2 pseudo-relocation,
rather -Wl,--enable-runtime-pseudo-reloc-v2 in my Makefile.
The command I'm currently using for debugging is (taken from output of
arm-mingw32ce-gcc -v) :
/opt/mingw32ce/libexec/gcc/arm-mingw32ce/4.4.0/collect2
-T /opt/mingw32ce/arm-mingw32ce/lib/ldscripts/arm_wince_pe.x --verbose
--shared -Bdynamic -e DllMainCRTStartup
-o ./testDll.dll
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/dllcrt3.o
-L/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0
-L/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib
--strip-debug --major-os-version 4 --minor-os-version 20
--major-subsystem-version 4 --minor-subsystem-version 20 --major-image-version
0 --stack 0x10000 --enable-runtime-pseudo-reloc-v2 testDll.o -lmingw32 -lgcc_s
-lgcc -lceoldname -lmingwex -lcoredll -lcoredll -lmingw32 -lgcc_s -lgcc
-lceoldname -lmingwex -lcoredll
The -T option was added to avoid using the builtin linker script.
Does anyone know of a way to debug these things ? Adding an echo
statement only resulted in a syntax error.
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel