Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Illegal Instruction


  • To: arm-gnu@xxxxxxxxxxxxxxxx
  • Subject: [arm-gnu] Illegal Instruction
  • From: Stephen Kuo <stephenkuo@xxxxxxxxx>
  • Date: Mon, 1 Sep 2008 17:49:21 +0800

Hi Grus


I would like to ask a simple question, it is about "Illegal Instruction".

I used the arm-none-linux-gnueabi(2008q1-126) compiler to compile a program, the program simply adds 2 float number and output the result.
When I executed the program, I got the "Illegal Instruction".

I have used the same toolchain to build Linux kernel (2.6.25.16) and busybox on my ARM9 board (S3C2440),
the kernel and busybox works fine.
(I have enabled the ARM EABI feature in the kernel, which is "Kernel Features --> Use the ARM EABI to compile the kernel" in menuconfig)

In addition to add the "-msoft-float" option, do I have to add another option to get it run?
S3C2440 does support EABI, right?

By the way, to do more research on this problem, I have used crosstool- ng to build a eabi toolchain myself.
Well, all I got is still "Illegal Instruction".


Best Regards

Stephen Kuo