Illegal instruction - Help!

Aiqun Du
Wed Jan 15 22:51:00 GMT 2003


I am using linux gcc 3.2 (64 bit). I first run "gcc -c" on several .c files 
to get .o files. Then run following command to link them with a library:
gcc -N foo.o bar.o librtas.a

When I run the a.out, I got:
"Illegal instruction".

If run gcc without "-N", it gave error: "not enough room for program headers 
(allocated 6, need 7)".

librtas.a is built from 124 .o using ar command.

Do you have any idea what could cause the execution fail and how to work 
around it?

Thank you.


Protect your PC - get VirusScan Online

More information about the Binutils mailing list