Anyone know how to compile a kernel in FreePascal without any undefined references or writing an RTL for a system you haven't created yet? I've also tried writing it in GNU Pascal, but I still get undefined references constantly, and the feature set sucks.