gprof problem, crt1.c change

Venkatesh Srinivas me at
Fri Apr 9 05:14:52 PDT 2010

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

More information about the Kernel mailing list