diff mbox

Make binutils 2.22.51.0.1 compile

Message ID CAJcDVWPVo5UVgDhmT=FvvCWSDVcen+ThZ4qx7aDQUdDxO3fNAg@mail.gmail.com
State New
Headers show

Commit Message

Bernhard Rosenkraenzer Jan. 12, 2012, 12:57 a.m. UTC
Hi,
the attached patch makes binutils 2.22.51.0.1 compile even if all
targets are enabled for libbfd.

Best regards
bero
diff mbox

Patch

commit 4fe1061816d0e1ce45b52c3aa0510567af3fef71
Author: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
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 <Bernhard.Rosenkranzer@linaro.org>

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