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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_startup.S b/coregrind/vg_startup.S
index 9122ebf..f6c17a5 100644
--- a/coregrind/vg_startup.S
+++ b/coregrind/vg_startup.S
@@ -64,11 +64,14 @@
 
 .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