From: Julian Seward Date: Sun, 27 Apr 2003 22:23:23 +0000 (+0000) Subject: Don't trash %eflags before snapshotting the state of the machine at X-Git-Tag: svn/VALGRIND_2_0_0~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbf253377656e58c5de19233455bd85985f0f96d;p=thirdparty%2Fvalgrind.git Don't trash %eflags before snapshotting the state of the machine at startup. I don't know if this is actually of interest, since surely the flags are not live at the point where the section's .init function is called, but still, it's a form of state pollution. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1570 --- diff --git a/coregrind/vg_startup.S b/coregrind/vg_startup.S index 9122ebf3f1..f6c17a52a3 100644 --- a/coregrind/vg_startup.S +++ b/coregrind/vg_startup.S @@ -64,11 +64,14 @@ valgrind_already_initted: .global VG_(startup) VG_(startup): + pushfl cmpl $0, valgrind_already_initted je really_start_up + popfl ret really_start_up: + popfl movl $1, valgrind_already_initted # Record %esp as it was when we got here. This is because argv/c