gprof problem, crt1.c change
--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'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--