This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]