Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BAB04BA.C0DECAF4@enea.se> Date: Fri, 21 Sep 2001 11:13:31 +0200 From: Mohammad Saleem X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com, crossgcc AT sources DOT redhat DOT com Subject: Failure of ELF reader error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/