DragonFly BSD
DragonFly kernel List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

gprof problem, crt1.c change


From: Venkatesh Srinivas <me@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Apr 2010 08:08:40 -0400

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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]