Can you please double check? THREADVARLIST_GP2X_SDL_MIXER is a symbol generated by FPC, GCC does not generate such a symbol. As there are no variables or non-external procedures in your Pascal unit, this is exactly the output you would expect when you use nm on the FPC generated .o file.