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 protected], which is a mailing list for gcc developments. It is appropriate for [EMAIL PROTECTED]
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 .bssThat is presumably the call to mcount which records the profiling information.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! -- Adam Sulmicki http://www.eax.com The Supreme Headquarters of the 32 bit registers
