[PATCH] bfd: tweak SET_ARCH_MACH of aout-cris.c
authorGunther Nikl <gnikl@justmail.de>
Mon, 4 May 2020 15:07:26 +0000 (16:07 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 4 May 2020 15:07:26 +0000 (16:07 +0100)
commit7242fa8aa7596b4e154ca96ddf5ce49353bf2e5d
tree64094a7b7e94bd4116523e4572dc69ec08b820e6
parentcff69cf4cf97e1eb4c2cca8e985e403b1a97c059
[PATCH] bfd: tweak SET_ARCH_MACH of aout-cris.c

* aout-cris.c (DEFAULT_ARCH): Delete define.
(MY_set_arch_mach): Likewise.
(SET_ARCH_MACH): Use bfd_set_arch_mach with an explicit architecture
of bfd_arch_cris.
(swap_ext_reloc_in): Add casts to r_index extraction. Mask valid bits
of r_type before the shift.
bfd/ChangeLog
bfd/aout-cris.c