[binutils-gdb] aarch64: fix build issue raised by -Werror=maybe-uninitialized

Matthieu Longo mlongo@sourceware.org
Wed Jan 21 14:50:30 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d375859a971cea922444da0560492421bd8d75ea

commit d375859a971cea922444da0560492421bd8d75ea
Author: Matthieu Longo <matthieu.longo@arm.com>
Date:   Wed Jan 21 14:43:41 2026 +0000

    aarch64: fix build issue raised by -Werror=maybe-uninitialized

Diff:
---
 bfd/elfnn-aarch64.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index d0be20ee459..8bca4ac7c66 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -5096,6 +5096,10 @@ bfd_elfNN_aarch64_set_options (struct bfd *output_bfd,
       else
 	gcs_report_dynamic = sw_protections->gcs_report_dynamic;
       break;
+
+    default:
+      /* Unknown GCS type.  */
+      abort ();
     }
 
   elf_aarch64_tdata (output_bfd)->gnu_property_aarch64_feature_1_and


More information about the Binutils-cvs mailing list