From 73c8603c3f2f8d47f3b225df3ba117ea0b3f51b3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 28 May 2024 16:30:14 +0100 Subject: Fix: internal error in write_function_pdata at obj-coff-seh PR 31796 --- gas/config/obj-coff-seh.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit v1.1