--- gcc-4.0.3/gcc/collect2.c.orig	2005-06-06 21:21:03.000000000 +0200
+++ gcc-4.0.3/gcc/collect2.c	2008-10-29 15:31:13.000000000 +0100
@@ -1577,7 +1577,8 @@
   if (redir)
     {
       /* Open response file.  */
-      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT,
+        S_IRUSR | S_IWUSR);
 
       /* Duplicate the stdout and stderr file handles
 	 so they can be restored later.  */

