Actions

icon Post
text/html Subscribe
text/html Unsubscribe

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

Re: [arm-gnu] Programs compiled with -p abort with Segmentation Fault.


  • To: Dmitry Fink <finikk@xxxxxxxxx>
  • Subject: Re: [arm-gnu] Programs compiled with -p abort with Segmentation Fault.
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: Sat, 17 May 2008 10:51:26 -0700

Mark Mitchell wrote:

I'm compiling a simple "Hello world" with -p option. When I run it, I get Segmentation fault from mcount (it seems like the first call to mcount right from the start of main():

Please try using "-pg" (gprof profiling) instead of "-p" (plain prof).

According to one of our toolchain engineers, as of our latest (2008q1) release:

We don't use mcount() at all now. Anything doing so has clearly been built with an old or third party toolchain. These may require additional options (-fno-omit-frame-ponter -mapcs-frame) to operate correctly, and the mcount implementation supplied with those toolchains may be busted.

So, it looks like you may need to upgrade. It's important that you use not only the new toolchains, but also the newer libraries provided with the toolchain.

Thanks,

--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713