Index: gcc-3.4.6/gcc/collect2.c =================================================================== --- gcc-3.4.6.orig/gcc/collect2.c +++ gcc-3.4.6/gcc/collect2.c @@ -1540,7 +1540,7 @@ collect_execute (const char *prog, char 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. */