Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 1 | From c59684852ecd37d6f82363f2cf0e1de1f770aab7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Hatle <mark.hatle@kernel.crashing.org> |
| 3 | Date: Fri, 17 Jul 2020 09:20:54 -0500 |
| 4 | Subject: [PATCH 33/40] Fix various compile warnings |
| 5 | |
| 6 | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> |
| 7 | --- |
| 8 | bfd/elf64-microblaze.c | 9 +++++---- |
| 9 | 2 files changed, 10 insertions(+), 10 deletions(-) |
| 10 | |
| 11 | diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c |
| 12 | index b002b414d64..8308f1ebd09 100644 |
| 13 | --- a/bfd/elf64-microblaze.c |
| 14 | +++ b/bfd/elf64-microblaze.c |
| 15 | @@ -692,7 +692,7 @@ microblaze_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, |
| 16 | /* Set the howto pointer for a RCE ELF reloc. */ |
| 17 | |
| 18 | static bfd_boolean |
| 19 | -microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED, |
| 20 | +microblaze_elf_info_to_howto (bfd * abfd, |
| 21 | arelent * cache_ptr, |
| 22 | Elf_Internal_Rela * dst) |
| 23 | { |
| 24 | @@ -705,14 +705,14 @@ microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED, |
| 25 | r_type = ELF64_R_TYPE (dst->r_info); |
| 26 | if (r_type >= R_MICROBLAZE_max) |
| 27 | { |
| 28 | - (*_bfd_error_handler) (_("%pB: unrecognised MicroBlaze reloc number: %d"), |
| 29 | + _bfd_error_handler (_("%pB: unsupported relocation type %#x"), |
| 30 | abfd, r_type); |
| 31 | bfd_set_error (bfd_error_bad_value); |
| 32 | return FALSE; |
| 33 | } |
| 34 | |
| 35 | cache_ptr->howto = microblaze_elf_howto_table [r_type]; |
| 36 | - return TRUE; |
| 37 | + return TRUE; |
| 38 | } |
| 39 | |
| 40 | /* Microblaze ELF local labels start with 'L.' or '$L', not '.L'. */ |
| 41 | @@ -1560,7 +1560,7 @@ microblaze_elf_relocate_section (bfd *output_bfd, |
| 42 | else |
| 43 | { |
| 44 | BFD_FAIL (); |
| 45 | - (*_bfd_error_handler) |
| 46 | + _bfd_error_handler |
| 47 | (_("%pB: probably compiled without -fPIC?"), |
| 48 | input_bfd); |
| 49 | bfd_set_error (bfd_error_bad_value); |
| 50 | @@ -2554,6 +2554,7 @@ microblaze_elf_check_relocs (bfd * abfd, |
| 51 | goto dogottls; |
| 52 | case R_MICROBLAZE_TLSLD: |
| 53 | tls_type |= (TLS_TLS | TLS_LD); |
| 54 | + /* Fall through. */ |
| 55 | dogottls: |
| 56 | sec->has_tls_reloc = 1; |
| 57 | /* Fall through. */ |
| 58 | -- |
| 59 | 2.17.1 |
| 60 | |