]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix: internal error in write_function_pdata at obj-coff-seh
authorNick Clifton <nickc@redhat.com>
Tue, 28 May 2024 15:30:14 +0000 (16:30 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 28 May 2024 15:30:14 +0000 (16:30 +0100)
  PR 31796

gas/config/obj-coff-seh.c

index 4800b959751952919044c033c7277da4adc523d1..24cc7209be6fe9518c17a443af254f33133da83f 100644 (file)
@@ -196,12 +196,15 @@ seh_get_target_kind (void)
 {
   if (!stdoutput)
     return seh_kind_unknown;
+
   switch (bfd_get_arch (stdoutput))
     {
+    case bfd_arch_aarch64:
     case bfd_arch_arm:
     case bfd_arch_powerpc:
     case bfd_arch_sh:
       return seh_kind_arm;
+
     case bfd_arch_i386:
       switch (bfd_get_mach (stdoutput))
        {
@@ -214,9 +217,11 @@ seh_get_target_kind (void)
       /* FALL THROUGH.  */
     case bfd_arch_mips:
       return seh_kind_mips;
+
     case bfd_arch_ia64:
       /* Should return seh_kind_x64.  But not implemented yet.  */
       return seh_kind_unknown;
+
     default:
       break;
     }