Brad Bishop | f6355e4 | 2020-12-08 14:30:50 -0500 | [diff] [blame^] | 1 | From a86506136a738c3ab64d42a876fbfdfa1d46ad64 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Hatle <mark.hatle@xilinx.com> |
| 3 | Date: Thu, 3 Dec 2020 12:02:25 -0800 |
| 4 | Subject: [PATCH 49/52] bfd/elf64-microblaze.c: Resolve various compiler |
| 5 | warnings |
| 6 | |
| 7 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> |
| 8 | --- |
| 9 | bfd/elf64-microblaze.c | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c |
| 13 | index 786f659232..70cd80cdf2 100644 |
| 14 | --- a/bfd/elf64-microblaze.c |
| 15 | +++ b/bfd/elf64-microblaze.c |
| 16 | @@ -1258,6 +1258,7 @@ microblaze_elf_relocate_section (bfd *output_bfd, |
| 17 | goto dogot; |
| 18 | case (int) R_MICROBLAZE_TLSLD: |
| 19 | tls_type = (TLS_TLS | TLS_LD); |
| 20 | + /* Fall through. */ |
| 21 | dogot: |
| 22 | case (int) R_MICROBLAZE_GOT_64: |
| 23 | { |
| 24 | @@ -2569,6 +2570,7 @@ microblaze_elf_check_relocs (bfd * abfd, |
| 25 | tls_type |= (TLS_TLS | TLS_LD); |
| 26 | dogottls: |
| 27 | sec->has_tls_reloc = 1; |
| 28 | + /* Fall through. */ |
| 29 | case R_MICROBLAZE_GOT_64: |
| 30 | if (htab->sgot == NULL) |
| 31 | { |
| 32 | @@ -2802,10 +2804,8 @@ microblaze_elf_adjust_dynamic_symbol (struct bfd_link_info *info, |
| 33 | struct elf64_mb_link_hash_table *htab; |
| 34 | struct elf64_mb_link_hash_entry * eh; |
| 35 | struct elf64_mb_dyn_relocs *p; |
| 36 | - asection *sdynbss; |
| 37 | asection *s, *srel; |
| 38 | unsigned int power_of_two; |
| 39 | - bfd *dynobj; |
| 40 | |
| 41 | htab = elf64_mb_hash_table (info); |
| 42 | if (htab == NULL) |
| 43 | -- |
| 44 | 2.17.1 |
| 45 | |