LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 05-13-2010, 01:34 PM   #1
exin
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
EABI issue


Hi!

I'm currently using a AT91SAM9261-EK evaluation board for developing a text-to-speech solution.

The problem is that the libraries provided by the Acapela Group does not use EABI.

I can successfully compile simple hello world programs (code below) using the codesourcery toolchain and run them on the board but even though I've compiled a kernel with the CONFIG_OABI_COMPAT I can't run anything not using EABI (compiled with ELDK 4.0).

Code:
#include <stdio.h>

int main() {
  printf("hello world!\n");
}
This one compiled with the codesourcery toolchain works fine:

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: 0x8380
Start of program headers: 52 (bytes into file)
Start of section headers: 2116 (bytes into file)
Flags: 0x5000002, has entry point, Version5 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: 30
Section header string table index: 27

But this one compiled with ELDK 4.0 does not:

ELF Header:
Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: ARM
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x82c8
Start of program headers: 52 (bytes into file)
Start of section headers: 3052 (bytes into file)
Flags: 0x602, has entry point, GNU EABI, software FP, VFP
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 6
Size of section headers: 40 (bytes)
Number of section headers: 31
Section header string table index: 28

I just get "-sh: <filename>: not found". I can use a hexeditor to look at the file so it's there alright but can't be executed. I've also tried using the GNU ARM-toolchain with the same simple hello world example but that just gives me a segmentation fault when trying to execute the resulting binary on the board.

I could add that compiling and linking my own code with the libraries provided from Acapela works with ELDK 4.0, I just can't run the resulting executables..

Any ideas how I should resolve this issue?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need an arm EABI version 4 libxml2.so library file David Li Linux - Newbie 2 07-11-2012 02:29 PM
forced old ABI syscalls on EABI build ashes_sheldon Programming 0 05-29-2009 12:33 AM
Trouble mounting ipod. Hal issue and mount point issue. okos Slackware 2 05-11-2009 12:51 AM
LXer: Analysis: Why EABI matters LXer Syndicated Linux News 0 03-16-2007 06:46 AM
LXer: Debian ARM accelerates via EABI port LXer Syndicated Linux News 0 01-20-2007 05:33 PM


All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration