summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-06 02:54:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-06 02:54:57 +0000
commit8631068d69ec9f018fafaba2f378141de50654f5 (patch)
treecf83e9de934be8c023f2ff3ebbabcebbf4fc2b11 /misc
parent3ef8ae32d374f3e3d1505b3c54391c7f4ec4b7b3 (diff)
downloadnuttx-8631068d69ec9f018fafaba2f378141de50654f5.tar.gz
nuttx-8631068d69ec9f018fafaba2f378141de50654f5.tar.bz2
nuttx-8631068d69ec9f018fafaba2f378141de50654f5.zip
Fix missing mode in O_CREAT
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1753 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc')
-rw-r--r--misc/buildroot/ChangeLog2
-rw-r--r--misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch12
2 files changed, 14 insertions, 0 deletions
diff --git a/misc/buildroot/ChangeLog b/misc/buildroot/ChangeLog
index 398ead19f..4fe108c2c 100644
--- a/misc/buildroot/ChangeLog
+++ b/misc/buildroot/ChangeLog
@@ -42,5 +42,7 @@ buildroot-0.1.6 2009-xx-xx <spudmonkey@racsa.co.cr>
* Added config/arm920t-defconfig-4.3.3
* Correct error in arm-defconfig gcc-3.4.6 build. The gcc-3.4.6 configuration
does not not take --with-abi
+ * Correct error in gcc-3.4.6/gcc/collect.c. Calls open with O_CREAT but
+ does not specify mode. Newer host compilers can error out on this.
diff --git a/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch b/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch
new file mode 100644
index 000000000..d6d7c1a8d
--- /dev/null
+++ b/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch
@@ -0,0 +1,12 @@
+diff -u gcc-3.4.6/gcc/collect2.c.orig gcc-3.4.6/gcc/collect2.c
+--- gcc-3.4.6/gcc/collect2.c.orig 2009-05-05 20:37:56.000000000 -0600
++++ gcc-3.4.6/gcc/collect2.c 2009-05-05 20:39:06.000000000 -0600
+@@ -1534,7 +1534,7 @@
+ 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. */