[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/30046] power cmpi leads to unknown architecture
From: |
amodra at gmail dot com |
Subject: |
[Bug gas/30046] power cmpi leads to unknown architecture |
Date: |
Thu, 16 Feb 2023 10:38:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30046
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |amodra at gmail dot com
Status|NEW |ASSIGNED
--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
Yes, the problem is that the powerpc ELF backends only support bfd_arch_powerpc
(ELF_ARCH in elf32-ppc.c and elf64-ppc.c) and we don't override
bfd_set_arch_mach to do anything special, so the default _bfd_elf_set_arch_mach
rejects bfd_arch_rs6000.
On the other hand, the xcoff backends support both bfd_arch_rs6000 and
bfd_arch_powerpc.
I think the correct thing to do is simply change ppc_arch to always return
bfd_arch_powerpc when OBJ_ELF. I'm testing a patch to do that.
--
You are receiving this mail because:
You are on the CC list for the bug.