Hi,
I have a problem when cross compiling libraries with ts-2005q3 toolchain to
armel (debian-lenny-eabi-armel-512MB-mar032009.tar.gz). I already read some
related threads in the list, but I think my problem is a little different.
I can easily crosscompile a simple hello world, or some other "complexer" (with
dynamic link) programs and they run on my tpc-7390.
However, if I try to crosscompile a library (e.g. proj4) it does not work. That
is, the resulted ".so" files are incompatible with the "system".
If I run these program, I always receive an "Illegal Instruction".
What am I doing wrong?
some informations below...
Regards
Adriano
ts7800:/usr/local/armel/bin# uname -a
Linux armel 2.6.21-ts #2 PREEMPT Thu Mar 26 14:51:40 BRT 2009 armv4tl GNU/Linux
ts7800:/usr/local/armel/bin# ./proj
Rel. 4.6.1, 21 August 2008
usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]
Illegal instruction
ts7800:/usr/local/armel/bin# readelf -h proj
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x8f10
Start of program headers: 52 (bytes into file)
Start of section headers: 37148 (bytes into file)
Flags: 0x4000002, has entry point, Version4 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 7
Size of section headers: 40 (bytes)
Number of section headers: 37
Section header string table index: 34
ts7800:/usr/local/armel/bin# readelf -h /bin/ls
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x98fc
Start of program headers: 52 (bytes into file)
Start of section headers: 87180 (bytes into file)
Flags: 0x4000002, has entry point, Version4 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 26
Section header string table index: 25
------------------------------------
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/
|