gprof problem, crt1.c change

看板DFBSD_kernel作者時間16年前 (2010/04/09 20:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--0016369c8f9b2640e30483cca9b5 Content-Type: text/plain; charset=UTF-8 Hi, When trying to use gprof on DragonFly, linking even a hello world program with -pg cause argc and argv to become 0 each. While trying to trace why, I ran into crt1.c; on i386, this has a block of assembler to call main with args in the correct place. This block of code appears to not be necessary - FreeBSD's crt1.c no longer has it and I was able to delete it with no ill effects; exit(main(argc, argv, envp)) appears to be enough... -- vs --0016369c8f9b2640e30483cca9b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,<div><br></div><div>When trying to use gprof on DragonFly, linking even = a hello world program with -pg cause argc and argv to become 0 each.</div><= div><br></div><div>While trying to trace why, I ran into crt1.c; on i386, t= his has a block of assembler to call main with args in the correct place. T= his block of code appears to not be necessary - FreeBSD&#39;s crt1.c no lon= ger has it and I was able to delete it with no ill effects; exit(main(argc,= argv, envp)) appears to be enough...</div> <div><br clear=3D"all">-- vs<br> </div> --0016369c8f9b2640e30483cca9b5--
文章代碼(AID): #1Blnv536 (DFBSD_kernel)