diff options
author | Walter Lee <walt@tilera.com> | 2012-09-17 18:01:18 +0000 |
---|---|---|
committer | Walter Lee <walt@tilera.com> | 2012-09-17 18:01:18 +0000 |
commit | 5ec61378372b535bfadce78ffa5832623b2ac99c (patch) | |
tree | 87f6b6574477e261a82ef410a6e248b0aea7e346 | |
parent | 5a1ad39d72c3b435886df2699c3d9ccb7ba2d5cc (diff) | |
download | gdb-5ec61378372b535bfadce78ffa5832623b2ac99c.zip gdb-5ec61378372b535bfadce78ffa5832623b2ac99c.tar.gz gdb-5ec61378372b535bfadce78ffa5832623b2ac99c.tar.bz2 |
Remove unused got_base variable.
* elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
got_base variable.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-tilepro.c | 6 | ||||
-rw-r--r-- | bfd/elfxx-tilegx.c | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8133188..d6d72bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2012-09-17 Walter Lee <walt@tilera.com> + * 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> + * 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. diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c index f522b38..90fdace 100644 --- a/bfd/elf32-tilepro.c +++ b/bfd/elf32-tilepro.c @@ -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; diff --git a/bfd/elfxx-tilegx.c b/bfd/elfxx-tilegx.c index a57654f..e22188b 100644 --- a/bfd/elfxx-tilegx.c +++ b/bfd/elfxx-tilegx.c @@ -3094,7 +3094,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; @@ -3106,11 +3105,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; |