From patchwork Thu Jan 12 00:57:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Rosenkraenzer X-Patchwork-Id: 6163 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 65E0F23E16 for ; Thu, 12 Jan 2012 00:57:15 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 48657A18368 for ; Thu, 12 Jan 2012 00:57:15 +0000 (UTC) Received: by bkbzu5 with SMTP id zu5so1243293bkb.11 for ; Wed, 11 Jan 2012 16:57:15 -0800 (PST) Received: by 10.205.26.67 with SMTP id rl3mr428616bkb.45.1326329835029; Wed, 11 Jan 2012 16:57:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs122440bkc; Wed, 11 Jan 2012 16:57:14 -0800 (PST) Received: by 10.68.212.161 with SMTP id nl1mr3624991pbc.38.1326329832538; Wed, 11 Jan 2012 16:57:12 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id g9si4881155pbj.62.2012.01.11.16.57.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jan 2012 16:57:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of bernhard.rosenkranzer@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of bernhard.rosenkranzer@linaro.org) smtp.mail=bernhard.rosenkranzer@linaro.org Received: by pbff6 with SMTP id f6so6377pbf.37 for ; Wed, 11 Jan 2012 16:57:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.73.196 with SMTP id n4mr3673221pbv.33.1326329831676; Wed, 11 Jan 2012 16:57:11 -0800 (PST) Received: by 10.143.90.15 with HTTP; Wed, 11 Jan 2012 16:57:11 -0800 (PST) Date: Wed, 11 Jan 2012 16:57:11 -0800 Message-ID: Subject: [PATCH] Make binutils 2.22.51.0.1 compile From: =?ISO-8859-1?Q?Bernhard_Rosenkr=E4nzer?= To: hjl.tools@gmail.com Hi, the attached patch makes binutils 2.22.51.0.1 compile even if all targets are enabled for libbfd. Best regards bero commit 4fe1061816d0e1ce45b52c3aa0510567af3fef71 Author: Bernhard Rosenkraenzer Date: Wed Jan 11 03:44:57 2012 +0059 Make binutils-2.22.51.0.1 compile even if libbfd is built with support for elf32-epiphany, elf32-rl78, elf32-tilepro or elfxx-tilegx Signed-off-by: Bernhard Rosenkraenzer diff --git a/binutils-2.22.51.0.1/bfd/elf32-epiphany.c b/binutils-2.22.51.0.1/bfd/elf32-epiphany.c index d5e61a2..15b48d2 100644 --- a/binutils-2.22.51.0.1/bfd/elf32-epiphany.c +++ b/binutils-2.22.51.0.1/bfd/elf32-epiphany.c @@ -515,11 +515,12 @@ epiphany_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, { bfd_boolean warned ATTRIBUTE_UNUSED; bfd_boolean unresolved_reloc ATTRIBUTE_UNUSED; + bfd_boolean ignored ATTRIBUTE_UNUSED; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, h, sec, relocation, - unresolved_reloc, warned); + unresolved_reloc, warned, ignored); name = h->root.root.string; } diff --git a/binutils-2.22.51.0.1/bfd/elf32-rl78.c b/binutils-2.22.51.0.1/bfd/elf32-rl78.c index 92c01b0..4023c56 100644 --- a/binutils-2.22.51.0.1/bfd/elf32-rl78.c +++ b/binutils-2.22.51.0.1/bfd/elf32-rl78.c @@ -460,12 +460,13 @@ rl78_elf_relocate_section } else { - bfd_boolean warned; + bfd_boolean warned ATTRIBUTE_UNUSED; + bfd_boolean ignored ATTRIBUTE_UNUSED; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, h, sec, relocation, unresolved_reloc, - warned); + warned, ignored); name = h->root.root.string; } diff --git a/binutils-2.22.51.0.1/bfd/elf32-tilepro.c b/binutils-2.22.51.0.1/bfd/elf32-tilepro.c index 7b08aff..39fd77b 100644 --- a/binutils-2.22.51.0.1/bfd/elf32-tilepro.c +++ b/binutils-2.22.51.0.1/bfd/elf32-tilepro.c @@ -2576,12 +2576,13 @@ tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, } else { - bfd_boolean warned; + bfd_boolean warned ATTRIBUTE_UNUSED; + bfd_boolean ignored ATTRIBUTE_UNUSED; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, h, sec, relocation, - unresolved_reloc, warned); + unresolved_reloc, warned, ignored); if (warned) { /* To avoid generating warning messages about truncated diff --git a/binutils-2.22.51.0.1/bfd/elfxx-tilegx.c b/binutils-2.22.51.0.1/bfd/elfxx-tilegx.c index 2aaa3d3..f0a0006 100644 --- a/binutils-2.22.51.0.1/bfd/elfxx-tilegx.c +++ b/binutils-2.22.51.0.1/bfd/elfxx-tilegx.c @@ -2890,12 +2890,13 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, } else { - bfd_boolean warned; + bfd_boolean warned ATTRIBUTE_UNUSED; + bfd_boolean ignored ATTRIBUTE_UNUSED; RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel, r_symndx, symtab_hdr, sym_hashes, h, sec, relocation, - unresolved_reloc, warned); + unresolved_reloc, warned, ignored); if (warned) { /* To avoid generating warning messages about truncated