This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Failure of ELF reader error
- To: cygwin at cygwin dot com, crossgcc at sources dot redhat dot com
- Subject: Failure of ELF reader error
- From: Mohammad Saleem <mosa at enea dot se>
- Date: Fri, 21 Sep 2001 11:13:31 +0200
Hi all,
Now I have built win32->powerPC cross compiler (thanks all who helped
me).
But I get the following error when I try to download the test.elf file
on the target.
"debug: error: aborting due to failure of ELF reader"
As a linker script I am using
\usr\local\powerpc-unknown-eabi\lib\yellowknife.ld
file with the following addition at the end of the file as I got
compilation error.
************************************************
PROVIDE (__SDATA_START__ = .);
.sdat : { *(.sdat) }
PROVIDE (__SBSS_END__ = .);
.sbss : { *(.sbss) }
PROVIDE (__SDATA2_START__ = .);
.sdat2 : { *(.sdat2) }
PROVIDE (__SBSS2_END__ = .);
.sbss2 : { *(.sbss2) }
PROVIDE (_SDA2_BASE_ = .);
.sda2 : { *(.sda2) }
__init =0;
__fini =0;
************************************************
Further I changed the SIZEOF_HEADERS to 1024 to get rid off
"Not enough room for program headers" error.
I would appreciate if anybody can help me to solve my problem.
Thanks in advance
regards
/Mohammad
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/