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/stage1.c b/coregrind/stage1.c
index 4d6d5db..638bf89 100644
--- a/coregrind/stage1.c
+++ b/coregrind/stage1.c
@@ -135,9 +135,7 @@
    info.setbrk = 1;		/* ask do_exec to move the brk-base */
    info.argv = NULL;
 
-   strcpy(buf, valgrind_lib);
-   strcat(buf, "/");
-   strcat(buf, stage2);
+   snprintf(buf, sizeof(buf), "%s/%s", valgrind_lib, stage2);
 
    err = do_exec(buf, &info);