diff --git a/gcc/collect2.c b/gcc/collect2.c index 153ac6f..1e00834 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1759,7 +1759,7 @@ collect_execute (prog, argv, redir) 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, 0666); /* Duplicate the stdout and stderr file handles so they can be restored later. */