[coldfire-gnu-discuss] Error when linking m68k-elf-gcc with flag -pg

Nathan Sidwell nathan at codesourcery.com
Tue Jan 29 22:22:51 UTC 2008


Ha Luong wrote:
> 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'

profiling relies on an mcount function, and is not supported on an ELF toolchain

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery




More information about the coldfire-gnu-discuss mailing list