ts-7000
[Top] [All Lists]

[ts-7000] cross compiled EABI binary gives Illegal instruction

To:
Subject: [ts-7000] cross compiled EABI binary gives Illegal instruction
From: "gajans.garage" <>
Date: Wed, 12 Nov 2008 21:48:53 -0000
Hi,

My specs are 
TS-7260/
2.6.21-ts(cross compiled with crosstool-linux26-3.4.4-2005q3-2.tar.gz)/
debian(debian-sarge-udev-11-15-2007.tar.gz)

I am trying to cross compile (-static) with
[arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2] it
compiles fine but when I run I get the [] error. The other two cross
compilers [crosstool-linux26-3.4.4-2005q3-2.tar.gz]
[ts7800-crosstool-linux-gnueabi-2005q3-2.tar.gz]
also produces the same error. 

Please Note:
1. The old-ABI cross compiler
[crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2]
works file 
2. compiling on board compile/run also works perfectly.


Error message ()
--------------------
:crosstools# ls -al a.out
-rwxr-xr-x 1 root root 573532 Nov 12  2008 a.out*
:crosstools# file a.out
a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
2.6.14, statically linked, not stripped
:crosstools# gdb a.out
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "arm-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) break main
Breakpoint 1 at 0x8210
(gdb) run
Starting program: /media/sbc/gajan/crosstools/a.out

Program received signal SIGILL, Illegal instruction.
0x00060000 in __udivsi3 ()
(gdb)


old-ABI
------
:crosstools# ls -al a.out
-rwxr-xr-x 1 root root 481224 Nov 12  2008 a.out*
:crosstools# file a.out
a.out: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux
2.4.3, statically linked, not stripped
:crosstools# ./a.out
Bla = 0.000122, muh = 0.000121.
Took [20000 - 490000] 470000 clocks.
:crosstools#



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU