Fix: internal error in write_function_pdata at obj-coff-seh
PR 31796
This commit is contained in:
parent
8406f84253
commit
73c8603c3f
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue