Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Ha Luong <haluongvn@xxxxxxxxx>
  • Subject: Re: [coldfire-gnu-discuss] Error when linking m68k-elf-gcc with flag -pg
  • From: Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
  • Date: Tue, 29 Jan 2008 22:22:51 +0000

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