Auto-generate stage2.lds so that the linker script matches the local
linker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2122 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h
index 1d8ab02..9c72831 100644
--- a/coregrind/vg_include.h
+++ b/coregrind/vg_include.h
@@ -1335,7 +1335,8 @@
    Char **argv;
    const Char *libdir;		/* library directory                    */
 
-   Int  execfd;			/* fd of our own (stage1) executable    */
+   Int  vgexecfd;		/* fd of our own (stage1) executable    */
+   Int  clexecfd;		/* fd of the client executable          */
 
    Addr client_base;		/* start of client address space	*/
    Addr	client_end;		/* end of client address space		*/
@@ -1384,7 +1385,10 @@
 extern Addr VG_(valgrind_end);
 
 /* stage1 executable file descriptor */
-extern Int  VG_(execfd);
+extern Int  VG_(vgexecfd);
+
+/* client executable file descriptor */
+extern Int  VG_(clexecfd);
 
 /* Path to all our library/aux files */
 extern const Char *VG_(libdir);