delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/21/05:12:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <mosa AT enea DOT se>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019