]> git.pld-linux.org Git - packages/binutils.git/commitdiff
- -i586_nop.patch: fix linking for older x86 processors (disable use of multi
authorJacek Konieczny <jajcus@pld-linux.org>
Thu, 9 Feb 2012 10:34:12 +0000 (10:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  byte NOP on those archs)
- Release: 2

Changed files:
    binutils-i586_nop.patch -> 1.1
    binutils.spec -> 1.355

binutils-i586_nop.patch [new file with mode: 0644]
binutils.spec

diff --git a/binutils-i586_nop.patch b/binutils-i586_nop.patch
new file mode 100644 (file)
index 0000000..80feec4
--- /dev/null
@@ -0,0 +1,33 @@
+diff -dur binutils-2.22.52.0.1.orig/bfd/cpu-i386.c binutils-2.22.52.0.1/bfd/cpu-i386.c
+--- binutils-2.22.52.0.1.orig/bfd/cpu-i386.c   2012-02-01 00:46:04.000000000 +0100
++++ binutils-2.22.52.0.1/bfd/cpu-i386.c        2012-02-09 10:14:16.627045230 +0100
+@@ -52,28 +52,7 @@
+   static const char nop_1[] = { 0x90 };       
+   /* nopw */
+   static const char nop_2[] = { 0x66, 0x90 };
+-  /* nopl (%[re]ax) */
+-  static const char nop_3[] = { 0x0f, 0x1f, 0x00 };
+-  /* nopl 0(%[re]ax) */
+-  static const char nop_4[] = { 0x0f, 0x1f, 0x40, 0x00 };
+-  /* nopl 0(%[re]ax,%[re]ax,1) */
+-  static const char nop_5[] = { 0x0f, 0x1f, 0x44, 0x00, 0x00 };
+-  /* nopw 0(%[re]ax,%[re]ax,1) */
+-  static const char nop_6[] = { 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00 };
+-  /* nopl 0L(%[re]ax) */
+-  static const char nop_7[] = { 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00 };
+-  /* nopl 0L(%[re]ax,%[re]ax,1) */
+-  static const char nop_8[] =
+-    { 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00};
+-  /* nopw 0L(%[re]ax,%[re]ax,1) */
+-  static const char nop_9[] =
+-    { 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 };
+-  /* nopw %cs:0L(%[re]ax,%[re]ax,1) */
+-  static const char nop_10[] =
+-    { 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 };
+-  static const char *const nops[] =
+-    { nop_1, nop_2, nop_3, nop_4, nop_5,
+-      nop_6, nop_7, nop_8, nop_9, nop_10 };
++  static const char *const nops[] = { nop_1, nop_2 };
+   void *fill = bfd_malloc (count);
+   if (fill == NULL)
index f1f0bdcec8977dc95b9411818efe503ffd5532e1..795319e31cc61b5e59cb5c597c3d221d7b799fc9 100644 (file)
@@ -17,7 +17,7 @@ Summary(tr.UTF-8):    GNU geliştirme araçları
 Summary(uk.UTF-8):     Набір інструментів GNU для побудови виконуваних програм
 Name:          binutils
 Version:       2.22.52.0.1
-Release:       1
+Release:       2
 Epoch:         3
 License:       GPL v3+
 Group:         Development/Tools
@@ -36,6 +36,7 @@ Patch6:               %{name}-absolute-gnu_debuglink-path.patch
 Patch7:                %{name}-libtool-m.patch
 Patch8:                %{name}-build-id.patch
 Patch9:                %{name}-tooldir.patch
+Patch10:       %{name}-i586_nop.patch
 URL:           http://sources.redhat.com/binutils/
 BuildRequires: autoconf >= 2.64
 BuildRequires: automake >= 1:1.11
@@ -157,6 +158,9 @@ niektórych pakietów.
 %patch7 -p1
 %patch8 -p0
 %patch9 -p1
+%ifarch i386 i486 i586
+%patch10 -p1
+%endif
 
 # file contains hacks for ac 2.59 only
 %{__rm} config/override.m4
This page took 0.091636 seconds and 4 git commands to generate.