Error when linking m68k-elf-gcc with flag -pg
Ha Luong
haluongvn at gmail.com
Tue Jan 29 09:57:32 UTC 2008
Dear Sir,
I would like to use m68k-elf-gprof, so I pass -pg flag to m68k-elf-gcc.
m68k-elf-gcc -mcpu=5282 -O3
-TD:/BuildTools/CodeSourcery_4_2/m68k-elf/lib/m5282evb-ram-hosted.ld
sort.c-o sort -pg
and I have the error
C:\DOCUME~1\tungpham\LOCALS~1\Temp/ccYfcaaa.o: In function `main':
sort.c:(.text+0x16): undefined reference to `mcount'
collect2: ld returned 1 exit status
And I attached the small source code I tested.
Could you please help me?
Thanks a lot,
Ha Luong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080129/4753d281/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ch8.zip
Type: application/zip
Size: 1405 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080129/4753d281/attachment.zip>
More information about the coldfire-gnu-discuss
mailing list