This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build regression with --enable-targets=all [Re: [committed] TILE-Gx/TILEPro: fix got relocations for merged .got/.got.plt]


On 9/17/2012 9:21 AM, Jan Kratochvil wrote:> On Mon, 17 Sep 2012 12:57:03 +0200,
Walter Lee wrote:
>> 	* elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation
>> 	of got relocations for when .got.plt section is merged with .got.
>> 	* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
> 
> gcc-4.7.1-5.fc18.x86_64
> 
> elf32-tilepro.c: In function ‘tilepro_elf_relocate_section’:
> elf32-tilepro.c:2788:11: error: variable ‘got_base’ set but not used [-Werror=unused-but-set-variable]
> elfxx-tilegx.c: In function ‘tilegx_elf_relocate_section’:
> elfxx-tilegx.c:3097:11: error: variable ‘got_base’ set but not used [-Werror=unused-but-set-variable]

Thanks for the heads up.  The following fix has been committed, and verified
with 4.7.2 RC.

	* elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
	got_base variable.
	* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.

Index: bfd/elf32-tilepro.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-tilepro.c,v
retrieving revision 1.13
diff -u -p -r1.13 elf32-tilepro.c
--- bfd/elf32-tilepro.c	17 Sep 2012 10:53:38 -0000	1.13
+++ bfd/elf32-tilepro.c	17 Sep 2012 17:59:00 -0000
@@ -2785,7 +2785,6 @@ tilepro_elf_relocate_section (bfd *outpu
   Elf_Internal_Shdr *symtab_hdr;
   struct elf_link_hash_entry **sym_hashes;
   bfd_vma *local_got_offsets;
-  bfd_vma got_base;
   asection *sreloc;
   Elf_Internal_Rela *rel;
   Elf_Internal_Rela *relend;
@@ -2797,11 +2796,6 @@ tilepro_elf_relocate_section (bfd *outpu
   sym_hashes = elf_sym_hashes (input_bfd);
   local_got_offsets = elf_local_got_offsets (input_bfd);

-  if (elf_hash_table (info)->hgot == NULL)
-    got_base = 0;
-  else
-    got_base = elf_hash_table (info)->hgot->root.u.def.value;
-
   sreloc = elf_section_data (input_section)->sreloc;

   rel = relocs;
Index: bfd/elfxx-tilegx.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-tilegx.c,v
retrieving revision 1.15
diff -u -p -r1.15 elfxx-tilegx.c
--- bfd/elfxx-tilegx.c	17 Sep 2012 10:53:38 -0000	1.15
+++ bfd/elfxx-tilegx.c	17 Sep 2012 17:59:00 -0000
@@ -3094,7 +3094,6 @@ tilegx_elf_relocate_section (bfd *output
   Elf_Internal_Shdr *symtab_hdr;
   struct elf_link_hash_entry **sym_hashes;
   bfd_vma *local_got_offsets;
-  bfd_vma got_base;
   asection *sreloc;
   Elf_Internal_Rela *rel;
   Elf_Internal_Rela *relend;
@@ -3106,11 +3105,6 @@ tilegx_elf_relocate_section (bfd *output
   sym_hashes = elf_sym_hashes (input_bfd);
   local_got_offsets = elf_local_got_offsets (input_bfd);

-  if (elf_hash_table (info)->hgot == NULL)
-    got_base = 0;
-  else
-    got_base = elf_hash_table (info)->hgot->root.u.def.value;
-
   sreloc = elf_section_data (input_section)->sreloc;

   rel = relocs;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]