diff options
| author | Scott Garman <scott.a.garman@intel.com> | 2010-12-22 09:56:46 -0800 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-23 16:06:45 +0000 |
| commit | 674f99954091856a67c532d17248df6c59b9394d (patch) | |
| tree | d498e2809cdc9229ec180a5daefec2ddce8093cb | |
| parent | 236faced1d907b025a3136c5949a311104d3a661 (diff) | |
| download | poky-674f99954091856a67c532d17248df6c59b9394d.tar.gz | |
binutils: delete unused patches
These patches are not used by any current binutils recipe.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
5 files changed, 0 insertions, 209 deletions
diff --git a/meta/recipes-devtools/binutils/files/better_file_error.patch b/meta/recipes-devtools/binutils/files/better_file_error.patch deleted file mode 100644 index 38ef52966e..0000000000 --- a/meta/recipes-devtools/binutils/files/better_file_error.patch +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | diff -urN binutils-2.11.92.0.5/bfd/opncls.c binutils-2.11.92.0.5.new/bfd/opncls.c | ||
| 2 | --- binutils-2.11.92.0.5/bfd/opncls.c Mon Oct 1 18:25:21 2001 | ||
| 3 | +++ binutils-2.11.92.0.5.new/bfd/opncls.c Sat Oct 13 11:26:59 2001 | ||
| 4 | @@ -127,6 +127,13 @@ | ||
| 5 | { | ||
| 6 | bfd *nbfd; | ||
| 7 | const bfd_target *target_vec; | ||
| 8 | + struct stat s; | ||
| 9 | + | ||
| 10 | + if (stat (filename, &s) == 0) | ||
| 11 | + if (S_ISDIR(s.st_mode)) { | ||
| 12 | + bfd_set_error (bfd_error_file_not_recognized); | ||
| 13 | + return NULL; | ||
| 14 | + } | ||
| 15 | |||
| 16 | nbfd = _bfd_new_bfd (); | ||
| 17 | if (nbfd == NULL) | ||
diff --git a/meta/recipes-devtools/binutils/files/ld_makefile.patch b/meta/recipes-devtools/binutils/files/ld_makefile.patch deleted file mode 100644 index c1d2ac1ece..0000000000 --- a/meta/recipes-devtools/binutils/files/ld_makefile.patch +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | --- binutils-2.11.90.0.19.orig/ld/Makefile.am | ||
| 2 | +++ binutils-2.11.90.0.19/ld/Makefile.am | ||
| 3 | @@ -19,7 +19,7 @@ | ||
| 4 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
| 5 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
| 6 | # directives need to be different for native and cross linkers. | ||
| 7 | -scriptdir = $(tooldir)/lib | ||
| 8 | +scriptdir = $(libdir) | ||
| 9 | |||
| 10 | EMUL = @EMUL@ | ||
| 11 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
| 12 | --- binutils-2.11.90.0.19.orig/ld/Makefile.in | ||
| 13 | +++ binutils-2.11.90.0.19/ld/Makefile.in | ||
| 14 | @@ -123,7 +123,7 @@ | ||
| 15 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
| 16 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
| 17 | # directives need to be different for native and cross linkers. | ||
| 18 | -scriptdir = $(tooldir)/lib | ||
| 19 | +scriptdir = $(libdir) | ||
| 20 | |||
| 21 | EMUL = @EMUL@ | ||
| 22 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
diff --git a/meta/recipes-devtools/binutils/files/objdump_fix.patch b/meta/recipes-devtools/binutils/files/objdump_fix.patch deleted file mode 100644 index 90ad732c06..0000000000 --- a/meta/recipes-devtools/binutils/files/objdump_fix.patch +++ /dev/null | |||
| @@ -1,134 +0,0 @@ | |||
| 1 | From binutils-return-38148-listarch-binutils=sources dot redhat dot com at sources dot redhat dot com Tue Feb 22 19:24:15 2005 | ||
| 2 | Return-Path: <binutils-return-38148-listarch-binutils=sources dot redhat dot com at sources dot redhat dot com> | ||
| 3 | Delivered-To: listarch-binutils at sources dot redhat dot com | ||
| 4 | Received: (qmail 4446 invoked by alias); 22 Feb 2005 19:24:15 -0000 | ||
| 5 | Mailing-List: contact binutils-help at sources dot redhat dot com; run by ezmlm | ||
| 6 | Precedence: bulk | ||
| 7 | List-Subscribe: <mailto:binutils-subscribe at sources dot redhat dot com> | ||
| 8 | List-Archive: <http://sources.redhat.com/ml/binutils/> | ||
| 9 | List-Post: <mailto:binutils at sources dot redhat dot com> | ||
| 10 | List-Help: <mailto:binutils-help at sources dot redhat dot com>, <http://sources dot redhat dot com/ml/#faqs> | ||
| 11 | Sender: binutils-owner at sources dot redhat dot com | ||
| 12 | Delivered-To: mailing list binutils at sources dot redhat dot com | ||
| 13 | Received: (qmail 4401 invoked from network); 22 Feb 2005 19:24:08 -0000 | ||
| 14 | Received: from unknown (HELO bgo1smout1.broadpark.no) (217.13.4.94) | ||
| 15 | by sourceware dot org with SMTP; 22 Feb 2005 19:24:08 -0000 | ||
| 16 | Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) | ||
| 17 | by bgo1smout1 dot broadpark dot no | ||
| 18 | (Sun Java System Messaging Server 6 dot 1 HotFix 0 dot 05 (built Oct 21 2004)) | ||
| 19 | with ESMTP id <0ICB007QZUZCC0C0 at bgo1smout1 dot broadpark dot no> for | ||
| 20 | binutils at sources dot redhat dot com; Tue, 22 Feb 2005 20:18:48 +0100 (CET) | ||
| 21 | Received: from [127.0.0.1] ([80.202.165.9]) by bgo1sminn1.broadpark.no | ||
| 22 | (Sun Java System Messaging Server 6 dot 1 HotFix 0 dot 05 (built Oct 21 2004)) | ||
| 23 | with ESMTP id <0ICB006NCVBVHE21 at bgo1sminn1 dot broadpark dot no> for | ||
| 24 | binutils at sources dot redhat dot com; Tue, 22 Feb 2005 20:26:20 +0100 (CET) | ||
| 25 | Date: Tue, 22 Feb 2005 20:24:08 +0100 | ||
| 26 | From: =?ISO-8859-1?Q?Stig_Petter_Olsr=F8d?= <stigpo at users dot sourceforge dot net> | ||
| 27 | Subject: [PATCH] objdump relocation fixes for ARM disassembly | ||
| 28 | To: binutils at sources dot redhat dot com | ||
| 29 | Message-id: <421B86D8.8080604@users.sourceforge.net> | ||
| 30 | MIME-version: 1.0 | ||
| 31 | Content-type: text/plain; charset=ISO-8859-1; format=flowed | ||
| 32 | Content-transfer-encoding: 7BIT | ||
| 33 | User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) | ||
| 34 | |||
| 35 | Hello, | ||
| 36 | |||
| 37 | objdump disassembly did not relocate correctly for the ARM processor. It seems | ||
| 38 | that the test for triggering the INSN_HAS_RELOC flag was void (one test killed the other, | ||
| 39 | since octets would always be zero) and all relocations would thus fail. I changed the test | ||
| 40 | so the flag is set when we are about to disassemble an insn that the current relocation | ||
| 41 | entry points to. I also changed objdump_print_addr to use the current relocation entry if | ||
| 42 | the insn has such an entry. This causes the symbol printed to be correct for both external | ||
| 43 | symbols (from the undefined section) and local symbols. | ||
| 44 | |||
| 45 | This has only been tested for the ARM processor, but I don't think it should break other | ||
| 46 | DISASSEMBLER_NEEDS_RELOCS processors either. | ||
| 47 | |||
| 48 | |||
| 49 | binutils/ | ||
| 50 | |||
| 51 | 2005-02-22 Stig Petter Olsroed <stigpo@users.sourceforge.net> | ||
| 52 | |||
| 53 | * objdump.c (disassemble_bytes): Fixed relocation check for | ||
| 54 | DISASSEMBLER_NEEDS_RELOCS platforms to properly trigger the | ||
| 55 | INSN_HAS_RELOC flag. Set the current relocation entry in | ||
| 56 | objdump_disasm_info to allow printing the proper symbol. | ||
| 57 | (objdump_print_addr): Use the relocation entry in | ||
| 58 | objdump_disasm_info to lookup the correct symbol for | ||
| 59 | DISASSEMBLER_NEEDS_RELOCS platforms. | ||
| 60 | |||
| 61 | --- 1/binutils/objdump.c 2005-02-22 01:50:06.000000000 +0100 | ||
| 62 | +++ 2/binutils/objdump.c 2005-02-22 14:27:33.066960900 +0100 | ||
| 63 | @@ -128,6 +128,7 @@ | ||
| 64 | arelent ** dynrelbuf; | ||
| 65 | long dynrelcount; | ||
| 66 | disassembler_ftype disassemble_fn; | ||
| 67 | + arelent * reloc; | ||
| 68 | }; | ||
| 69 | |||
| 70 | /* Architecture to disassemble for, or default if NULL. */ | ||
| 71 | @@ -852,6 +853,8 @@ | ||
| 72 | { | ||
| 73 | struct objdump_disasm_info *aux; | ||
| 74 | asymbol *sym; | ||
| 75 | + arelent *q; | ||
| 76 | + int skip_find = 0; | ||
| 77 | |||
| 78 | if (sorted_symcount < 1) | ||
| 79 | { | ||
| 80 | @@ -861,6 +864,22 @@ | ||
| 81 | } | ||
| 82 | |||
| 83 | aux = (struct objdump_disasm_info *) info->application_data; | ||
| 84 | + | ||
| 85 | + q = aux->reloc; | ||
| 86 | + if (q != NULL) | ||
| 87 | + { | ||
| 88 | + if (q->sym_ptr_ptr != NULL && *q->sym_ptr_ptr != NULL) | ||
| 89 | + { | ||
| 90 | + /* Adjust the vma to the reloc */ | ||
| 91 | + vma += bfd_asymbol_value (*q->sym_ptr_ptr); | ||
| 92 | + if (bfd_is_und_section (bfd_get_section (*q->sym_ptr_ptr))) | ||
| 93 | + { | ||
| 94 | + skip_find = 1; | ||
| 95 | + sym = *q->sym_ptr_ptr; | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | + } | ||
| 99 | + if (!skip_find) | ||
| 100 | sym = find_symbol_for_address (vma, info, NULL); | ||
| 101 | objdump_print_addr_with_sym (aux->abfd, aux->sec, sym, vma, info, | ||
| 102 | skip_zeroes); | ||
| 103 | @@ -1350,16 +1369,22 @@ | ||
| 104 | info->bytes_per_chunk = 0; | ||
| 105 | |||
| 106 | #ifdef DISASSEMBLER_NEEDS_RELOCS | ||
| 107 | - /* FIXME: This is wrong. It tests the number of octets | ||
| 108 | - in the last instruction, not the current one. */ | ||
| 109 | - if (*relppp < relppend | ||
| 110 | - && (**relppp)->address >= rel_offset + addr_offset | ||
| 111 | - && ((**relppp)->address | ||
| 112 | - < rel_offset + addr_offset + octets / opb)) | ||
| 113 | + /* Check if the current relocation entry applies to the | ||
| 114 | + instruction we are about to disassemble. | ||
| 115 | + This works for ARM at least. | ||
| 116 | + */ | ||
| 117 | + if ((*relppp) < relppend | ||
| 118 | + && ((**relppp)->address == rel_offset + addr_offset)) | ||
| 119 | + { | ||
| 120 | info->flags = INSN_HAS_RELOC; | ||
| 121 | + aux->reloc = **relppp; | ||
| 122 | + } | ||
| 123 | else | ||
| 124 | #endif | ||
| 125 | + { | ||
| 126 | info->flags = 0; | ||
| 127 | + aux->reloc = NULL; | ||
| 128 | + } | ||
| 129 | |||
| 130 | octets = (*disassemble_fn) (section->vma + addr_offset, info); | ||
| 131 | info->fprintf_func = (fprintf_ftype) fprintf; | ||
| 132 | |||
| 133 | |||
| 134 | |||
diff --git a/meta/recipes-devtools/binutils/files/plt32trunc.patch b/meta/recipes-devtools/binutils/files/plt32trunc.patch deleted file mode 100644 index 4990f5dbb6..0000000000 --- a/meta/recipes-devtools/binutils/files/plt32trunc.patch +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | --- binutils/bfd/elf32-arm.h.orig 2004-04-22 22:11:15.000000000 -0400 | ||
| 2 | +++ binutils/bfd/elf32-arm.h 2004-04-22 22:28:37.000000000 -0400 | ||
| 3 | @@ -2229,6 +2229,8 @@ elf32_arm_relocate_section (output_bfd, | ||
| 4 | case R_ARM_PC24: | ||
| 5 | case R_ARM_ABS32: | ||
| 6 | case R_ARM_THM_PC22: | ||
| 7 | + case R_ARM_PLT32: | ||
| 8 | + | ||
| 9 | if (info->shared | ||
| 10 | && ( | ||
| 11 | (!info->symbolic && h->dynindx != -1) | ||
| 12 | @@ -2262,11 +2264,6 @@ elf32_arm_relocate_section (output_bfd, | ||
| 13 | relocation = 0; | ||
| 14 | break; | ||
| 15 | |||
| 16 | - case R_ARM_PLT32: | ||
| 17 | - if (h->plt.offset != (bfd_vma)-1) | ||
| 18 | - relocation = 0; | ||
| 19 | - break; | ||
| 20 | - | ||
| 21 | default: | ||
| 22 | if (unresolved_reloc) | ||
| 23 | _bfd_error_handler | ||
| 24 | |||
diff --git a/meta/recipes-devtools/binutils/files/signed_char_fix.patch b/meta/recipes-devtools/binutils/files/signed_char_fix.patch deleted file mode 100644 index b3709dabed..0000000000 --- a/meta/recipes-devtools/binutils/files/signed_char_fix.patch +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | diff -urN binutils-2.11.92.0.12.3/opcodes/i386-dis.c binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c | ||
| 2 | --- binutils-2.11.92.0.12.3/opcodes/i386-dis.c Fri Nov 16 17:05:55 2001 | ||
| 3 | +++ binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c Mon Dec 31 15:55:04 2001 | ||
| 4 | @@ -1830,7 +1830,7 @@ | ||
| 5 | * The function returns the length of this instruction in bytes. | ||
| 6 | */ | ||
| 7 | |||
| 8 | -static char intel_syntax; | ||
| 9 | +static signed char intel_syntax; | ||
| 10 | static char open_char; | ||
| 11 | static char close_char; | ||
| 12 | static char separator_char; | ||
