How should I convert an existing Linux program to work with uclinux?
Creating an XFLAT module is really very simple: You just compile with xflat-gcc and link with xflat-ld. Add -shared to xflat-ld command line to build a shared library; add the stack size to the command line to build a program. But, of course, there is really more to the job than that. You may have to make additional changes to the code to work under uClinux (see above). And you may have to make some changes to work with some pecularities of XFLAT. See, here and here, for examples.