This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: Unable to load ELF file
- From: Raghu <raghu_dk at yahoo dot com>
- To: waynetg at telkomsa dot net, ecos-devel at sources dot redhat dot com
- Date: Tue, 18 Jan 2005 04:37:15 -0800 (PST)
- Subject: Re: Unable to load ELF file
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=JsEGKDXl3soho8V1XY32RPawVfpZ6Zk4Pcabixias0SfOq1JbLPDN2EKsjrT3e1lHSaYdiAtnkUhCFS5dedLMD1fwzbKSl8TVQ+60/DtEzcANh8noNbzdUGD0cxzV61L/oWNXumZ5UgulDjW7LYO7pH+r3EU0/dauLbnyXOJ9W4= ;
Looks like there is an endian-ness issue, I have
compiled "target.ls" as big-endian which is default
setting for IXDP425, but when I am compiling the
examples using
make INSTALL_DIR=/cygdrive/c/ecos-build/install
for some reason it compiles as little-endian. If I add
CFLAGS = -mbig-endian in
INSTALL_DIR/include/pkgconf/ecos.mak
I get collect2 error, since it is picking up "ld" from
a different path.
HexDump of Working "hello" is:
raghunandan@DKRAGHU /cygdrive/c/tftp_dir
$ od -x hello | more
0000000 457f 464c 0201 6101 0000 0000 0000 0000
0000020 0200 2800 0000 0100 0200 4000 0000 3400
And Non - working "hello" is:
$ od -x hello | more
0000000 457f 464c 0101 6101 0000 0000 0000 0000
0000020 0002 0028 0001 0000 0040 0008 0034 0000
Raghu.
--- Wayne Gemmell <waynetg@telkomsa.net> wrote:
>
> > "Only absolute ELF images supported".
> Look for a file ending in S3 or s. Its a motorola
> s-record file. That should
> do the work.
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com