summaryrefslogtreecommitdiff
path: root/patches/binutils/2.18
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-09-22 12:09:19 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-09-22 12:09:19 (GMT)
commit2d87a3583118c410fdd3a2fd2acfb281ec15537a (patch)
tree29e3bc2831e970fde6ea0769b67bf0821d7fe7ef /patches/binutils/2.18
parentc0cc140a6feb53213104a81b35cadec0cb04af9c (diff)
Add binutils-2.18.50.0.9.
Add a patch to binutils to not use '/' as a comment separator on i386 assembly when targeting bare metal (breaks linux kernel build). /trunk/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.14/110-i386-no-divide-comment.patch | 38 38 0 0 ++++++ /trunk/patches/binutils/2.14/270-i386-no-divide-comment.patch | 38 38 0 0 ++++++ /trunk/patches/binutils/2.16.1/160-i386-no-divide-comment.patch | 40 40 0 0 ++++++ /trunk/patches/binutils/2.17/210-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.18/120-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch | 64 64 0 0 ++++++++++ /trunk/config/binutils.in | 6 6 0 0 + 11 files changed, 570 insertions(+)
Diffstat (limited to 'patches/binutils/2.18')
-rw-r--r--patches/binutils/2.18/120-i386-no-divide-comment.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/patches/binutils/2.18/120-i386-no-divide-comment.patch b/patches/binutils/2.18/120-i386-no-divide-comment.patch
new file mode 100644
index 0000000..efbbcea
--- /dev/null
+++ b/patches/binutils/2.18/120-i386-no-divide-comment.patch
@@ -0,0 +1,64 @@
+diff -durN binutils-2.18.orig/gas/config/tc-i386.c binutils-2.18/gas/config/tc-i386.c
+--- binutils-2.18.orig/gas/config/tc-i386.c 2007-08-24 16:01:22.000000000 +0200
++++ binutils-2.18/gas/config/tc-i386.c 2008-09-22 08:11:42.000000000 +0200
+@@ -180,24 +180,10 @@
+ #endif
+ ;
+
+-#if (defined (TE_I386AIX) \
+- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
+- && !defined (TE_GNU) \
+- && !defined (TE_LINUX) \
+- && !defined (TE_NETWARE) \
+- && !defined (TE_FreeBSD) \
+- && !defined (TE_NetBSD)))
+ /* This array holds the chars that always start a comment. If the
+- pre-processor is disabled, these aren't very useful. The option
+- --divide will remove '/' from this list. */
+-const char *i386_comment_chars = "#/";
+-#define SVR4_COMMENT_CHARS 1
+-#define PREFIX_SEPARATOR '\\'
+-
+-#else
++ pre-processor is disabled, these aren't very useful. */
+ const char *i386_comment_chars = "#";
+ #define PREFIX_SEPARATOR '/'
+-#endif
+
+ /* This array holds the chars that only start a comment at the beginning of
+ a line. If the line seems to have the form '# 123 filename'
+@@ -6061,20 +6047,6 @@
+ break;
+
+ case OPTION_DIVIDE:
+-#ifdef SVR4_COMMENT_CHARS
+- {
+- char *n, *t;
+- const char *s;
+-
+- n = (char *) xmalloc (strlen (i386_comment_chars) + 1);
+- t = n;
+- for (s = i386_comment_chars; *s != '\0'; s++)
+- if (*s != '/')
+- *t++ = *s;
+- *t = '\0';
+- i386_comment_chars = n;
+- }
+-#endif
+ break;
+
+ case OPTION_MARCH:
+@@ -6142,13 +6114,8 @@
+ fprintf (stream, _("\
+ --32/--64 generate 32bit/64bit code\n"));
+ #endif
+-#ifdef SVR4_COMMENT_CHARS
+- fprintf (stream, _("\
+- --divide do not treat `/' as a comment character\n"));
+-#else
+ fprintf (stream, _("\
+ --divide ignored\n"));
+-#endif
+ fprintf (stream, _("\
+ -march=CPU/-mtune=CPU generate code/optimize for CPU, where CPU is one of:\n\
+ i386, i486, pentium, pentiumpro, pentium4, nocona,\n\