I'm using CodeWarrior 5.9 for PowerPC. My target is the MPC5554. I have some object files that I need to include in my bare metal project which were compiled using GCC, which means that they need to be linked against libgcc.
I have tried simply adding the libgcc.a static library from the correct GCC cross compiler, which CodeWarrior seems to correctly identify as a static library. However, when I try to link, it gives me the error:
internal linker error: File: 'ELF_Linker.c' Line: 4878.
I also tried compiling the source for libgcc to object files and including the ones I need as source in my project. This will link, or at least CodeWarrior does not throw errors. However, the executable does not work, and fails to make it to user code from the initialization routines.
Is it possible to include static libraries from GCC when linking in CodeWarrior? What does the internal error I am getting mean? Has anyone ever linked against libgcc in CodeWarrior?