]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/
authorTristan Gingold <gingold@adacore.com>
Tue, 18 Sep 2012 12:26:57 +0000 (12:26 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 18 Sep 2012 12:26:57 +0000 (12:26 +0000)
* elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
got_base variable.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.

bfd/ChangeLog
bfd/elf32-tilepro.c
bfd/elfxx-tilegx.c

index 2f4cab2ff4267c23d0e43321dc6280501c395664..7c0896c3dd7e710b52d1e3d3a2c3b8fd3a4975b3 100644 (file)
@@ -1,3 +1,9 @@
+       * elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
+       got_base variable.
+       * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
+
+2012-09-17  Walter Lee  <walt@tilera.com>
+
 2012-09-17  Walter Lee  <walt@tilera.com>
 
        * elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation
index d653c36c503bee3f98dbb378437d3e734f0a48a8..3d5a09e8fe7b0bf5b51c6daec2b622fd58297719 100644 (file)
@@ -2785,7 +2785,6 @@ tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
   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 *output_bfd, struct bfd_link_info *info,
   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 ac4ff816eddc4c313dd3dc9c08392a36f5d23482..425f9d88683c6e105389db9284d5def1c3b5955c 100644 (file)
@@ -3051,7 +3051,6 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
   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;
@@ -3063,11 +3062,6 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
   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;