GNU Binutils with patches for OS216
Révision | 458ad2b83ecf4d764703767bccf19723ca741f00 (tree) |
---|---|
l'heure | 2017-06-06 16:33:20 |
Auteur | Jose E. Marchesi <jose.marchesi@orac...> |
Commiter | Jose E. Marchesi |
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.
@@ -1,5 +1,15 @@ | ||
1 | 1 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
2 | 2 | |
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 | + | |
3 | 13 | * elflink.c (init_reloc_cookie_rels): Remove unused variable |
4 | 14 | `bed'. |
5 | 15 |
@@ -2034,10 +2034,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto, | ||
2034 | 2034 | { |
2035 | 2035 | const Elf_Internal_Rela *relend; |
2036 | 2036 | const Elf_Internal_Rela *lo16_rel; |
2037 | - const struct elf_backend_data *bed; | |
2038 | 2037 | bfd_vma lo_value = 0; |
2039 | 2038 | |
2040 | - bed = get_elf_backend_data (output_bfd); | |
2041 | 2039 | relend = relocs + input_section->reloc_count; |
2042 | 2040 | lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend); |
2043 | 2041 | if ((local_p) && (lo16_rel != NULL)) |
@@ -2778,7 +2776,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd, | ||
2778 | 2776 | const Elf_Internal_Rela *rel_end; |
2779 | 2777 | asection *sgot; |
2780 | 2778 | asection *sreloc; |
2781 | - const struct elf_backend_data *bed; | |
2782 | 2779 | |
2783 | 2780 | if (bfd_link_relocatable (info)) |
2784 | 2781 | return TRUE; |
@@ -2807,7 +2804,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd, | ||
2807 | 2804 | } |
2808 | 2805 | |
2809 | 2806 | sreloc = NULL; |
2810 | - bed = get_elf_backend_data (abfd); | |
2811 | 2807 | rel_end = relocs + sec->reloc_count; |
2812 | 2808 | for (rel = relocs; rel < rel_end; ++rel) |
2813 | 2809 | { |
@@ -1902,10 +1902,8 @@ score_elf_final_link_relocate (reloc_howto_type *howto, | ||
1902 | 1902 | { |
1903 | 1903 | const Elf_Internal_Rela *relend; |
1904 | 1904 | const Elf_Internal_Rela *lo16_rel; |
1905 | - const struct elf_backend_data *bed; | |
1906 | 1905 | bfd_vma lo_value = 0; |
1907 | 1906 | |
1908 | - bed = get_elf_backend_data (output_bfd); | |
1909 | 1907 | relend = relocs + input_section->reloc_count; |
1910 | 1908 | lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend); |
1911 | 1909 | if ((local_p) && (lo16_rel != NULL)) |
@@ -1935,7 +1933,6 @@ score_elf_final_link_relocate (reloc_howto_type *howto, | ||
1935 | 1933 | { |
1936 | 1934 | const Elf_Internal_Rela *relend; |
1937 | 1935 | const Elf_Internal_Rela *lo16_rel; |
1938 | - const struct elf_backend_data *bed; | |
1939 | 1936 | bfd_vma lo_value = 0; |
1940 | 1937 | |
1941 | 1938 | value = bfd_get_32 (input_bfd, contents + rel->r_offset); |
@@ -1943,7 +1940,6 @@ score_elf_final_link_relocate (reloc_howto_type *howto, | ||
1943 | 1940 | if ((addend & 0x4000) == 0x4000) |
1944 | 1941 | addend |= 0xffffc000; |
1945 | 1942 | |
1946 | - bed = get_elf_backend_data (output_bfd); | |
1947 | 1943 | relend = relocs + input_section->reloc_count; |
1948 | 1944 | lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend); |
1949 | 1945 | if ((local_p) && (lo16_rel != NULL)) |
@@ -2471,7 +2467,6 @@ s7_bfd_score_elf_relocate_section (bfd *output_bfd, | ||
2471 | 2467 | if (r_type == R_SCORE_GOT15) |
2472 | 2468 | { |
2473 | 2469 | const Elf_Internal_Rela *lo16_rel; |
2474 | - const struct elf_backend_data *bed; | |
2475 | 2470 | bfd_vma lo_addend = 0, lo_value = 0; |
2476 | 2471 | bfd_vma addend, value; |
2477 | 2472 |
@@ -2480,7 +2475,6 @@ s7_bfd_score_elf_relocate_section (bfd *output_bfd, | ||
2480 | 2475 | if ((addend & 0x4000) == 0x4000) |
2481 | 2476 | addend |= 0xffffc000; |
2482 | 2477 | |
2483 | - bed = get_elf_backend_data (output_bfd); | |
2484 | 2478 | relend = relocs + input_section->reloc_count; |
2485 | 2479 | lo16_rel = score_elf_next_relocation (input_bfd, R_SCORE_GOT_LO16, rel, relend); |
2486 | 2480 | if (lo16_rel != NULL) |
@@ -2587,7 +2581,6 @@ s7_bfd_score_elf_check_relocs (bfd *abfd, | ||
2587 | 2581 | const Elf_Internal_Rela *rel_end; |
2588 | 2582 | asection *sgot; |
2589 | 2583 | asection *sreloc; |
2590 | - const struct elf_backend_data *bed; | |
2591 | 2584 | |
2592 | 2585 | if (bfd_link_relocatable (info)) |
2593 | 2586 | return TRUE; |
@@ -2616,7 +2609,6 @@ s7_bfd_score_elf_check_relocs (bfd *abfd, | ||
2616 | 2609 | } |
2617 | 2610 | |
2618 | 2611 | sreloc = NULL; |
2619 | - bed = get_elf_backend_data (abfd); | |
2620 | 2612 | rel_end = relocs + sec->reloc_count; |
2621 | 2613 | for (rel = relocs; rel < rel_end; ++rel) |
2622 | 2614 | { |
@@ -10031,9 +10031,7 @@ _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, | ||
10031 | 10031 | const Elf_Internal_Rela *relend; |
10032 | 10032 | bfd_vma addend = 0; |
10033 | 10033 | bfd_boolean use_saved_addend_p = FALSE; |
10034 | - const struct elf_backend_data *bed; | |
10035 | 10034 | |
10036 | - bed = get_elf_backend_data (output_bfd); | |
10037 | 10035 | relend = relocs + input_section->reloc_count; |
10038 | 10036 | for (rel = relocs; rel < relend; ++rel) |
10039 | 10037 | { |