CVS: packaging/patches binutils-mingw-objdump.patch, NONE, 1.1
"Sergey A. Borshch" <[email protected]> Mon, 27 Oct 2008 14:53:50 +0000
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/packaging/patches
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv470/patches
Added Files:
binutils-mingw-objdump.patch
Log Message:
objdump patch added for mingw build. See WinAVR bug 1854716 tracker ( http://sourceforge.net/tracker/index.php?func=detail&aid=1854716&group_id=68108&atid=520074 )
--- NEW FILE: binutils-mingw-objdump.patch ---
diff -Nbaur binutils-2.18.50/binutils/objdump.c
binutils-2.18.50-mod/binutils/objdump.c
--- binutils-2.18.50/binutils/objdump.c Thu Feb 7 16:04:47 2008
+++ binutils-2.18.50-mod/binutils/objdump.c Thu Feb 7 16:02:11 2008
@@ -964,7 +964,12 @@
#endif
const char *map;
struct stat st;
+
+#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN32__
+ int fd = open (fn, O_RDONLY | O_BINARY);
+#else
int fd = open (fn, O_RDONLY);
+#endif
if (fd < 0)
return NULL;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/