On Thu, 2006-12-21 at 09:56 +1100, Ben Elliston wrote: > After some digging, I managed to work out why: the gcov runtime code > wants to create the .gcda file in the same directory that the object > file was created on the build system. Unless the same directory > structure exists on the target, the gcov runtime code just skips writing > out the data file on exit.
To be more precise, the gcov runtime first tries to create the required path, but this is unlikely to succeed if it requires creating a new directory under / (which only root can typically do). If it cannot create the full path before creating the data file, the gcov runtime code will just silently fail. Ben