strace: Make sure strace timer isn't copied to child process

At fork time the .data and .bss segments of the Cygwin DLL are copied
over to the child process.  This also copies the strace timer since
it's in the .bss segment so far.  Fix that by moving the strace timer
out into the .data_cygwin_nocopy segment.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-07-06 19:12:59 +02:00
parent 28d393c001
commit 8cff1569fc
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ strace::dll_info ()
int
strace::microseconds ()
{
static hires_ns now;
static hires_ns now NO_COPY;
return (int) now.usecs ();
}