• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision458ad2b83ecf4d764703767bccf19723ca741f00 (tree)
l'heure2017-06-06 16:33:20
AuteurJose E. Marchesi <jose.marchesi@orac...>
CommiterJose E. Marchesi

Message de Log

bfd: remove unused local variables in elf32-score, elf32-score7 and elfxx-mips

bfd/ChangeLog:

2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>

* elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused
variable bed'.
* elf32-score.c (score_elf_final_link_relocate): Likewise.
(s3_bfd_score_elf_check_relocs): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
(score_elf_final_link_relocate): Likewise.
(s7_bfd_score_elf_check_relocs): Likewise.

Change Summary

Modification

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,15 @@
11 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
22
3+ * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused
4+ variable `bed'.
5+ * elf32-score.c (score_elf_final_link_relocate): Likewise.
6+ (s3_bfd_score_elf_check_relocs): Likewise.
7+ * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
8+ (score_elf_final_link_relocate): Likewise.
9+ (s7_bfd_score_elf_check_relocs): Likewise.
10+
11+2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12+
313 * elflink.c (init_reloc_cookie_rels): Remove unused variable
414 `bed'.
515
--- a/bfd/elf32-score.c
+++ b/bfd/elf32-score.c
@@ -2034,10 +2034,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
20342034 {
20352035 const Elf_Internal_Rela *relend;
20362036 const Elf_Internal_Rela *lo16_rel;
2037- const struct elf_backend_data *bed;
20382037 bfd_vma lo_value = 0;
20392038
2040- bed = get_elf_backend_data (output_bfd);
20412039 relend = relocs + input_section->reloc_count;
20422040 lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend);
20432041 if ((local_p) && (lo16_rel != NULL))
@@ -2778,7 +2776,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
27782776 const Elf_Internal_Rela *rel_end;
27792777 asection *sgot;
27802778 asection *sreloc;
2781- const struct elf_backend_data *bed;
27822779
27832780 if (bfd_link_relocatable (info))
27842781 return TRUE;
@@ -2807,7 +2804,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
28072804 }
28082805
28092806 sreloc = NULL;
2810- bed = get_elf_backend_data (abfd);
28112807 rel_end = relocs + sec->reloc_count;
28122808 for (rel = relocs; rel < rel_end; ++rel)
28132809 {
--- a/bfd/elf32-score7.c
+++ b/bfd/elf32-score7.c
@@ -1902,10 +1902,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
19021902 {
19031903 const Elf_Internal_Rela *relend;
19041904 const Elf_Internal_Rela *lo16_rel;
1905- const struct elf_backend_data *bed;
19061905 bfd_vma lo_value = 0;
19071906
1908- bed = get_elf_backend_data (output_bfd);
19091907 relend = relocs + input_section->reloc_count;
19101908 lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend);
19111909 if ((local_p) && (lo16_rel != NULL))
@@ -1935,7 +1933,6 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
19351933 {
19361934 const Elf_Internal_Rela *relend;
19371935 const Elf_Internal_Rela *lo16_rel;
1938- const struct elf_backend_data *bed;
19391936 bfd_vma lo_value = 0;
19401937
19411938 value = bfd_get_32 (input_bfd, contents + rel->r_offset);
@@ -1943,7 +1940,6 @@ score_elf_final_link_relocate (reloc_howto_type *howto,
19431940 if ((addend & 0x4000) == 0x4000)
19441941 addend |= 0xffffc000;
19451942
1946- bed = get_elf_backend_data (output_bfd);
19471943 relend = relocs + input_section->reloc_count;
19481944 lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend);
19491945 if ((local_p) && (lo16_rel != NULL))
@@ -2471,7 +2467,6 @@ s7_bfd_score_elf_relocate_section (bfd *output_bfd,
24712467 if (r_type == R_SCORE_GOT15)
24722468 {
24732469 const Elf_Internal_Rela *lo16_rel;
2474- const struct elf_backend_data *bed;
24752470 bfd_vma lo_addend = 0, lo_value = 0;
24762471 bfd_vma addend, value;
24772472
@@ -2480,7 +2475,6 @@ s7_bfd_score_elf_relocate_section (bfd *output_bfd,
24802475 if ((addend & 0x4000) == 0x4000)
24812476 addend |= 0xffffc000;
24822477
2483- bed = get_elf_backend_data (output_bfd);
24842478 relend = relocs + input_section->reloc_count;
24852479 lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend);
24862480 if (lo16_rel != NULL)
@@ -2587,7 +2581,6 @@ s7_bfd_score_elf_check_relocs (bfd *abfd,
25872581 const Elf_Internal_Rela *rel_end;
25882582 asection *sgot;
25892583 asection *sreloc;
2590- const struct elf_backend_data *bed;
25912584
25922585 if (bfd_link_relocatable (info))
25932586 return TRUE;
@@ -2616,7 +2609,6 @@ s7_bfd_score_elf_check_relocs (bfd *abfd,
26162609 }
26172610
26182611 sreloc = NULL;
2619- bed = get_elf_backend_data (abfd);
26202612 rel_end = relocs + sec->reloc_count;
26212613 for (rel = relocs; rel < rel_end; ++rel)
26222614 {
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -10031,9 +10031,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
1003110031 const Elf_Internal_Rela *relend;
1003210032 bfd_vma addend = 0;
1003310033 bfd_boolean use_saved_addend_p = FALSE;
10034- const struct elf_backend_data *bed;
1003510034
10036- bed = get_elf_backend_data (output_bfd);
1003710035 relend = relocs + input_section->reloc_count;
1003810036 for (rel = relocs; rel < relend; ++rel)
1003910037 {