public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Unable to load ELF file
@ 2005-01-18 11:18 Raghu
  2005-01-18 12:01 ` Wayne Gemmell
  0 siblings, 1 reply; 3+ messages in thread
From: Raghu @ 2005-01-18 11:18 UTC (permalink / raw)
  To: ecos

Hello All, 

I am using a xscale-elf ( 2.0 ) toolchain and IXDP425
Eval board, and latest CVS eCOS snapshot release.
 
I have added packages CYGPKG_IO_FILEIO &
CYGPKG_FS_ROMFS and generated a eCOS library(
libtarget.a ).
When I link "hello" example with this lib and try to
download it to the target board I get this error...
"Only absolute ELF images supported".

Refering old "know problems" no 18007 where GDB cannot
cope with path > 128 char, I tried to change install
path and link without success. 

Any clues please ?

Regards
Raghu


$ make
INSTALL_DIR=/cygdrive/c/projects/ixp425/ixdp425_redboot_ramrom/install
xscale-elf-gcc -c -o hello.o
-I/cygdrive/c/projects/ixp425/ixdp425_redboot_ramro
m/install/include -mcpu=xscale -Wall -Wpointer-arith
-Wstrict-prototypes -Winlin
e -Wundef -Woverloaded-virtual -g -O2
-ffunction-sections -fdata-sections -fno-r
tti -fno-exceptions -fvtable-gc -mapcs-frame hello.c
cc1: warning: "-Woverloaded-virtual" is valid for C++
but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for
C/ObjC
cc1: warning: "-fvtable-gc" is valid for C++ but not
for C/ObjC
xscale-elf-gcc -nostartfiles
-L/cygdrive/c/projects/ixp425/ixdp425_redboot_ramro
m/install/lib -Ttarget.ld -mcpu=xscale
-Wl,--gc-sections -Wl,-static -g -O2 -nos
tdlib -o hello hello.o


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to load ELF file
  2005-01-18 11:18 Unable to load ELF file Raghu
@ 2005-01-18 12:01 ` Wayne Gemmell
  2005-01-18 12:37   ` Raghu
  0 siblings, 1 reply; 3+ messages in thread
From: Wayne Gemmell @ 2005-01-18 12:01 UTC (permalink / raw)
  To: ecos-devel


> "Only absolute ELF images supported".
Hi

Look for a file ending in S3 or s. Its a motorola s-record file. That should 
do the work.

Cheers
Wayne

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to load ELF file
  2005-01-18 12:01 ` Wayne Gemmell
@ 2005-01-18 12:37   ` Raghu
  0 siblings, 0 replies; 3+ messages in thread
From: Raghu @ 2005-01-18 12:37 UTC (permalink / raw)
  To: waynetg, ecos-devel

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 
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-18 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-18 11:18 Unable to load ELF file Raghu
2005-01-18 12:01 ` Wayne Gemmell
2005-01-18 12:37   ` Raghu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).