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

Reply via email to