This is interesting, it's the second note today speculating that we need to compile with -lgcc.
I think that's a bad approach, as we learned in the early days. It is too easy to link in libgcc code that expects a full OS environment and not realize you have done so.
I think you should use the 'ar' tool to extract the .o files you need from libgcc and link against those.
ron