patches/binutils-01-bug-2495.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 398 2387581e65fb
child 8249 994ab7add44e
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
398
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     1
--- binutils-2.17-orig/bfd/elf64-x86-64.c	2006-03-23 09:23:09.000000000 +0100
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     2
+++ binutils-2.17/bfd/elf64-x86-64.c	2006-06-30 06:42:19.000000000 +0200
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     3
@@ -3439,13 +3439,11 @@
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     4
 				const char *name,
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     5
 				int shindex)
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     6
 {
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     7
-  if (hdr->sh_type != SHT_X86_64_UNWIND)
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     8
-    return FALSE;
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
     9
-
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    10
-  if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    11
-    return FALSE;
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    12
-
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    13
-  return TRUE;
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    14
+  if (hdr->sh_type == SHT_X86_64_UNWIND ||
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    15
+      (hdr->sh_type >= SHT_LOOS && hdr->sh_type <= SHT_HIOS)) {
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    16
+    return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    17
+  }
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    18
+  return FALSE;
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    19
 }
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    20
 
2387581e65fb * SFEbinutils.spec: Add patch1 http://sourceware.org/bugzilla/show_bug.cgi?id=2495
markwright
parents:
diff changeset
    21
 /* Hook called by the linker routine which adds symbols from an object