I am currently trying to port gcc and binutils to my operating system. I am currently using Newlib 2.5.0, GCC 5.2.0 and binutils 2.25.
I have cross compiled binutils and gcc for my OS and their work and it seems to be functioning correctly.
I'm trying to compile a very simple program under my OS:
Code: Select all
int main(int argc, char *argv[])
{
return 0;
}
Code: Select all
gcc -fno-use-linker-plugin /test.c
I get this error for all .a file:
Code: Select all
libgcc.a: file not recognized: file format not recognized
Code: Select all
gcc -c /test.c
Anybody have any ideas on how to solve this problem? Thank you
EDIT: Under my OS, ar does'nt recognized .a files too but under linux, i386-haoudos-ar recognized it. It's strange...