Robert Lunnon bobl@optushome.com.au writes:
Yes, fixed that but the linker still insists on including main() in the shared library. If I remove libwinecrt0.a from the link then the link goes OK and nm shows no references to main() in the shared library. Perhaps wine should have different runtime startofffs for shared objects and executables like gcc does for executable objects now at least this will remove any reliance on linker behaviour?
Well, we could add a dummy main() to make the linker happy, but I'd really like to understand where that reference comes from.