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]

RE: final link failed: bad value



Hello All,

Having built the 2.95.3 Linux - Powerpc cross gcc successfully I tried to
build one of our app and got this little gem:

/usr/powerpc-unknown-eabi/bin/powerpc-unknown-eabi-ld  -r -o
/home/codonnell/ppcbuild/IaCfm5.0/images/CfmSdslx16/ia.o
example/CfmSdslx16/buildCfmSdslx16.o cli/CfmSdslx16/buildCfmSdslx16.o
init/CfmSdslx16/buildCfmSdslx16.o shared/CfmSdslx16/buildCfmSdslx16.o
mgmt/CfmSdslx16/buildCfmSdslx16.o iacpsw/CfmSdslx16/buildCfmSdslx16.o
le/CfmSdslx16/buildCfmSdslx16.o redundancy/CfmSdslx16/buildCfmSdslx16.o
environmental/CfmSdslx16/buildCfmSdslx16.o
mgmtObjects/CfmSdslx16/buildCfmSdslx16.o
traffeng/CfmSdslx16/buildCfmSdslx16.o
trafficGenAndTest/CfmSdslx16/buildCfmSdslx16.o
timer/CfmSdslx16/buildCfmSdslx16.o bpenet/CfmSdslx16/buildCfmSdslx16.o
freedm/CfmSdslx16/buildCfmSdslx16.o disc/CfmSdslx16/buildCfmSdslx16.o
sdsl/CfmSdslx16/buildCfmSdslx16.o st16550/CfmSdslx16/buildCfmSdslx16.o
make[2]: Leaving directory `/home/codonnell/ppcbuild/IaCfm5.0/ia'
/usr/powerpc-unknown-eabi/bin/powerpc-unknown-eabi-ld  -Ttext 0x10000
/usr/powerpc-unknown-eabi/lib/ecrti.o images/CfmSdslx16/mqx.o
images/CfmSdslx16/ia.o /usr/powerpc-unknown-eabi/lib/ecrtn.o -o
images/mqxCfmSdslx16
/usr/powerpc-unknown-eabi/bin/powerpc-unknown-eabi-ld: images/mqxCfmSdslx16:
Not enough room for program headers (allocated 2, need 3)
/usr/powerpc-unknown-eabi/bin/powerpc-unknown-eabi-ld: final link failed:
Bad value
make[1]: *** [images/mqxCfmSdslx16] Error 1
make[1]: Leaving directory `/home/codonnell/ppcbuild/IaCfm5.0'
gmake: *** [all] Error 2


i did a powerpc-unknown-eabi-ld --version and it comes up with :

GNU ld 010522
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf32ppc
   elf32ppclinux
   elf32ppcsim



As a test I renamed this one and copied in the powerpc-unknown-eabi-ld from
our old build which is:

GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf32ppc


and our stuff links fine!


any ideas???

All the Best
Con




------
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]