aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff-seh.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-05-28 16:30:14 +0100
committerNick Clifton <nickc@redhat.com>2024-05-28 16:30:14 +0100
commit73c8603c3f2f8d47f3b225df3ba117ea0b3f51b3 (patch)
tree176ef75b12bf0825c1eea0e31f61853c8cacd282 /gas/config/obj-coff-seh.c
parent8406f842533f2b911c2d0639808d6fbc365f2f1c (diff)
downloadgdb-73c8603c3f2f8d47f3b225df3ba117ea0b3f51b3.zip
gdb-73c8603c3f2f8d47f3b225df3ba117ea0b3f51b3.tar.gz
gdb-73c8603c3f2f8d47f3b225df3ba117ea0b3f51b3.tar.bz2
Fix: internal error in write_function_pdata at obj-coff-seh
PR 31796
Diffstat (limited to 'gas/config/obj-coff-seh.c')
-rw-r--r--gas/config/obj-coff-seh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c
index 4800b95..24cc720 100644
--- a/gas/config/obj-coff-seh.c
+++ b/gas/config/obj-coff-seh.c
@@ -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;
}