ts-7000
[Top] [All Lists]

[ts-7000] Re: Dynamically Linked helloword

To:
Subject: [ts-7000] Re: Dynamically Linked helloword
From: "fulatoro" <>
Date: Fri, 28 Dec 2007 21:43:08 -0000
I am running Debian 3.1, I already looked at the binaries on the
system to see if they were EABI, but they are indeed legacy ABI, here
is the output of 

readelf -h yes

:bin# readelf -h yes
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:               0x89e4
  Start of program headers:          52 (bytes into file)
  Start of section headers:          10448 (bytes into file)
  Flags:                             0x2, has entry point, GNU EABI
  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:         24
  Section header string table index: 23

Flags are 0x2 hence signifying a legacy ABI, whereas the cross
compiler generates flags of 0x4000002, Version4 EABI.

I guess I have 2 options:
1.Install the native compiler suite on a nfs directory and use what is
available
2.Use an EABI rootfs and Kernel, which comes on the SD card I got from
TS., unfortunately, I am not sure how to load the kernel on the kernel
partition of the SD card, I tried changing the rootfs on the SD card
with an etch based rootfs, but it choked not finding the /dev/ttyS0
which seemed to have been there.

Thank you.

Moussa

--- In  "Martin Guy" <> wrote:
>
> 2007/12/28, fulatoro <>:
> > Hello, I have been trying to compile and run a simple helloworld
> > program on the TS7800 but with limited success.
> > I have tried arm-none-linux-gnueabi-gcc compiler 3.4.4 and 4.2.0 as
> > provided in the kit.
> >
> > I can only succeed in running the program if I statically link it with
> > a -static flag.  Dynamically linked version do not run, I just get a
> >
> > -bash: ./hello: No such file or directory.
> >
> > I can only assume that this is because there is a mismatch in the libc
> > versions, is that correct?
> 
> Yes, or some other dynamic library, or maybe /lib/ld-linux.so.N is the
> wrong version.
> 
> Hang on, are you running an EABI kernel on the board? I guess if the
> statically-cross-compiled binaries from the gnuebai crocc-sompiler
> work then you are. You can find out by using the commands listed at
> the top of wiki.debian.org/ArmEabiPort on some regular executables on
> your board.
> 
>     M
>




 
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