This is the mail archive of the
mailing list for the GCC project.
Re: -pg problem
can someone help me understand what is going on?
are the -p and -pg options supposed to work?
This question is not appropriate for email@example.com, which is a
mailing list for gcc developments. It is appropriate for
I apologize for this.
-p does work on GNU/Linux systems.
3b0: e8 00 00 00 00 call 3b5 <menu_init+0xb>
3b1: R_386_PC32 .bss
That is presumably the call to mcount which records the profiling
except that :
# grep mcount menu.c
static int mcount = 0;
Just to wrap things up. I have renamed all occurences of "mcount" in
sources to something else, and the program does not crash anymore.
Thanks a lot for help!
http://www.eax.com The Supreme Headquarters of the 32 bit registers