My knee jerk reaction is: you could try a first step at checking if it's a problem with loader applied relocations, or, if it's a runtime, post loader problem. Replace your debug '#if 0' by, say,
at global scope: volatile int print_base = 0; { ... if (print_base) wsprintf(msg, L"Ptr %p", &__U(_image_base__)); wsprintf(msg, L"Ptrs %p %p", &__RUNTIME_PSEUDO_RELOC_LIST__, &__RUNTIME_PSEUDO_RELOC_LIST_END__); } And see if that loads and runs. Then try with print_base set to 1. Build without optimizations. -- Pedro Alves ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel