Date: Wed, 5 Nov 2014 20:01:09 +0530 From: Shwetabh <shwetabh.mmmec@...il.com> To: musl@...ts.openwall.com Subject: undefined reference to `mcount' Hello Everyone , I am trying to link a normal hello world program with musl-libc with -pg option ( for profiling with gprof) following error i am getting shwetabh@...etabh-Aspire-4930:~/study/musl-1.1.5$ /usr/local/musl/bin/musl-gcc -pg hello.c /tmp/ccdspYkY.o: In function `main': hello.c:(.text+0xa): undefined reference to `mcount' collect2: error: ld returned 1 exit status without -pg option i am able to successfully link the program and can able to execute it . Requesting anyone to please provide the workaround for the error. -- Shwetabh Srivastava Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.