code warrior Library Linking with m68k-elf-gcc
santosh dwivedi
mwanaag at yahoo.com
Fri Jun 1 23:17:07 UTC 2007
Hello Developers,
"I am trying to use a library(This library is works
well with code warrior on coldfire) with my
application on coldfire. When I try to link this
library to application ,I get assertion error in
m68k-elf-gcc binutil tool chain /bfd/elf.c"
Below is error output. My coldfire processor is
MFC5280, I am using uCLinux.
"--->
main.c: In function `main':
main.c:13: warning: `ch' might be used uninitialized
in this function
/usr/local/m68k-elf/bin/ld.real: bfd assertion fail
../../binutils-2.10/bfd/elf.c:1346
/usr/local/m68k-elf/bin/ld.real: bfd assertion fail
../../binutils-2.10/bfd/elf.c:1346
/usr/local/m68k-elf/bin/ld.real: bfd assertion fail
../../binutils-2.10/bfd/elf.c:1346
/usr/local/m68k-elf/bin/ld.real: bfd assertion fail
../../binutils-2.10/bfd/elf.c:1346
/usr/local/m68k-elf/bin/ld.real: bfd assertion fail
../../binutils-2.10/bfd/elf.c:1346
/home/sans/delnetMFC5280/MAC/802.15.4/mcf5282_802154/src/vb_zigbee_macphy/Source/libM5282_802154_Type_FFD.a:
could not read symbols: Archive has no index; run
ranlib to add one
collect2: ld returned 1 exit status----<"
To find out what is wrong I made my own small library
with a function inside, and then tried to compile and
link my application with it, all well fine and I was
able to execute the program.
I tried to use ranlib but same assertion error I get
always. I tried to extract object files in library
with ar , i get some object files by doing so but with
assertion error.
Is there something special with codewarrior library ?
why it cant be linked with my application with
m68-elf-gcc?
Thanks for some suggestions to resolve this issue.
Cheers
Santosh
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
More information about the coldfire-gnu-discuss
mailing list