C-SKY: Fix machine flag.
authorXianmiao Qu <cooper.qu@linux.alibaba.com>
Tue, 17 Jan 2023 11:43:16 +0000 (11:43 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Jan 2023 11:43:16 +0000 (11:43 +0000)
commitfd1b3e0e8dbf5313bededeab9c9c4ed2da5a0693
tree7823321acac9e0db0dc3fdff4c6a0086aa8cbd23
parent1609cd6c5b189536d51ac98359b162061cb3bb1d
C-SKY: Fix machine flag.

* elf32-csky.c (elf32_csky_merge_attributes): Don't save and restore the ARCH attribute, it will actually clear the ARCH attribute. (csky_elf_merge_private_bfd_data): Store the machine flag correctly.
bfd/ChangeLog
bfd/elf32-csky.c