Am 21.12.2010 14:09, schrieb devebox:
>> msp430-gcc -Wall -Os -c m.c -o m.o
>> msp430-gcc -Wall -Os -c add2.c -o add2.o
>> msp430-ld -r --unresolved-symbols=ignore-in-object-files --strip-all
> -o m.cm m.o add2.o

note that the C compiler uses things from the libraries libc and libgcc.
when you call "ld" these are not added automatically. the symbols are
missing (zero) in your readelf outout because you don't link the libraries.

it's recommended to use also "gcc" as command for the linking. it
automatically adds the required libs. thus, just replace "msp430-ld"
with "msp430-gcc".

chris

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to