aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/binutils/binutils/0049-bfd-elf64-microblaze.c-Resolve-various-compiler-warn.patch
blob: 5f4a27146f0079ead0211ac771d3c74aaecffd7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From a86506136a738c3ab64d42a876fbfdfa1d46ad64 Mon Sep 17 00:00:00 2001
From: Mark Hatle <mark.hatle@xilinx.com>
Date: Thu, 3 Dec 2020 12:02:25 -0800
Subject: [PATCH 49/52] bfd/elf64-microblaze.c: Resolve various compiler
 warnings

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
---
 bfd/elf64-microblaze.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c
index 786f659232..70cd80cdf2 100644
--- a/bfd/elf64-microblaze.c
+++ b/bfd/elf64-microblaze.c
@@ -1258,6 +1258,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
 	      goto dogot;
 	    case (int) R_MICROBLAZE_TLSLD:
 	      tls_type = (TLS_TLS | TLS_LD);
+              /* Fall through. */
 	    dogot:
 	    case (int) R_MICROBLAZE_GOT_64:
 	      {
@@ -2569,6 +2570,7 @@ microblaze_elf_check_relocs (bfd * abfd,
           tls_type |= (TLS_TLS | TLS_LD);
         dogottls:
           sec->has_tls_reloc = 1;
+          /* Fall through. */
         case R_MICROBLAZE_GOT_64:
           if (htab->sgot == NULL)
             {
@@ -2802,10 +2804,8 @@ microblaze_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
   struct elf64_mb_link_hash_table *htab;
   struct elf64_mb_link_hash_entry * eh;
   struct elf64_mb_dyn_relocs *p;
-  asection *sdynbss;
   asection *s, *srel;
   unsigned int power_of_two;
-  bfd *dynobj;
 
   htab = elf64_mb_hash_table (info);
   if (htab == NULL)
-- 
2.17.1