summaryrefslogtreecommitdiff
path: root/patches/binutils/2.14/110-i386-no-divide-comment.patch
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.14/110-i386-no-divide-comment.patch
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.14/110-i386-no-divide-comment.patch')
-rw-r--r--patches/binutils/2.14/110-i386-no-divide-comment.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/patches/binutils/2.14/110-i386-no-divide-comment.patch b/patches/binutils/2.14/110-i386-no-divide-comment.patch
new file mode 100644
index 0000000..699db8e
--- /dev/null
+++ b/patches/binutils/2.14/110-i386-no-divide-comment.patch
@@ -0,0 +1,38 @@
+diff -durN binutils-2.14.orig/gas/config/tc-i386.c binutils-2.14/gas/config/tc-i386.c
+--- binutils-2.14.orig/gas/config/tc-i386.c 2003-01-29 11:05:52.000000000 +0100
++++ binutils-2.14/gas/config/tc-i386.c 2008-09-22 08:54:50.000000000 +0200
+@@ -189,15 +189,10 @@
+ const char extra_symbol_chars[] = "*%-([";
+ #endif
+
+-#if (defined (TE_I386AIX) \
+- || ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
+- && !defined (TE_LINUX) \
+- && !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. */
+-const char comment_chars[] = "#/";
+-#define PREFIX_SEPARATOR '\\'
++const char comment_chars[] = "#";
++#define PREFIX_SEPARATOR '/'
+
+ /* 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'
+@@ -207,16 +202,7 @@
+ #NO_APP at the beginning of its output.
+ Also note that comments started like this one will always work if
+ '/' isn't otherwise defined. */
+-const char line_comment_chars[] = "#";
+-
+-#else
+-/* Putting '/' here makes it impossible to use the divide operator.
+- However, we need it for compatibility with SVR4 systems. */
+-const char comment_chars[] = "#";
+-#define PREFIX_SEPARATOR '/'
+-
+ const char line_comment_chars[] = "/#";
+-#endif
+
+ const char line_separator_chars[] = ";";
+