Add "arm_any" architecture type to allow -m option to various binutils to match any ARM architecture.
PR target/20088 * cpu-arm.c (processors): Add "arm_any" type to match any ARM architecture. (arch_info_struct): Likewise. (architectures): Likewise.
This commit is contained in:
parent
c09ec62dde
commit
99914dfd71
2 changed files with 26 additions and 15 deletions
|
@ -1,3 +1,11 @@
|
|||
2016-06-02 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR target/20088
|
||||
* cpu-arm.c (processors): Add "arm_any" type to match any ARM
|
||||
architecture.
|
||||
(arch_info_struct): Likewise.
|
||||
(architectures): Likewise.
|
||||
|
||||
2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
|
||||
|
||||
* config.bfd: Replace -uclibc with *.
|
||||
|
|
|
@ -93,7 +93,8 @@ processors[] =
|
|||
{ bfd_mach_arm_XScale, "xscale" },
|
||||
{ bfd_mach_arm_ep9312, "ep9312" },
|
||||
{ bfd_mach_arm_iWMMXt, "iwmmxt" },
|
||||
{ bfd_mach_arm_iWMMXt2, "iwmmxt2" }
|
||||
{ bfd_mach_arm_iWMMXt2, "iwmmxt2" },
|
||||
{ bfd_mach_arm_unknown, "arm_any" }
|
||||
};
|
||||
|
||||
static bfd_boolean
|
||||
|
@ -128,19 +129,20 @@ scan (const struct bfd_arch_info *info, const char *string)
|
|||
|
||||
static const bfd_arch_info_type arch_info_struct[] =
|
||||
{
|
||||
N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]),
|
||||
N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]),
|
||||
N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]),
|
||||
N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]),
|
||||
N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]),
|
||||
N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]),
|
||||
N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]),
|
||||
N (bfd_mach_arm_5T, "armv5t", FALSE, & arch_info_struct[8]),
|
||||
N (bfd_mach_arm_5TE, "armv5te", FALSE, & arch_info_struct[9]),
|
||||
N (bfd_mach_arm_XScale, "xscale", FALSE, & arch_info_struct[10]),
|
||||
N (bfd_mach_arm_ep9312, "ep9312", FALSE, & arch_info_struct[11]),
|
||||
N (bfd_mach_arm_iWMMXt, "iwmmxt", FALSE, & arch_info_struct[12]),
|
||||
N (bfd_mach_arm_iWMMXt2, "iwmmxt2", FALSE, NULL)
|
||||
N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]),
|
||||
N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]),
|
||||
N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]),
|
||||
N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]),
|
||||
N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]),
|
||||
N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]),
|
||||
N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]),
|
||||
N (bfd_mach_arm_5T, "armv5t", FALSE, & arch_info_struct[8]),
|
||||
N (bfd_mach_arm_5TE, "armv5te", FALSE, & arch_info_struct[9]),
|
||||
N (bfd_mach_arm_XScale, "xscale", FALSE, & arch_info_struct[10]),
|
||||
N (bfd_mach_arm_ep9312, "ep9312", FALSE, & arch_info_struct[11]),
|
||||
N (bfd_mach_arm_iWMMXt, "iwmmxt", FALSE, & arch_info_struct[12]),
|
||||
N (bfd_mach_arm_iWMMXt2, "iwmmxt2", FALSE, & arch_info_struct[13]),
|
||||
N (bfd_mach_arm_unknown, "arm_any", FALSE, NULL)
|
||||
};
|
||||
|
||||
const bfd_arch_info_type bfd_arm_arch =
|
||||
|
@ -365,7 +367,8 @@ architectures[] =
|
|||
{ "XScale", bfd_mach_arm_XScale },
|
||||
{ "ep9312", bfd_mach_arm_ep9312 },
|
||||
{ "iWMMXt", bfd_mach_arm_iWMMXt },
|
||||
{ "iWMMXt2", bfd_mach_arm_iWMMXt2 }
|
||||
{ "iWMMXt2", bfd_mach_arm_iWMMXt2 },
|
||||
{ "arm_any", bfd_mach_arm_unknown }
|
||||
};
|
||||
|
||||
/* Extract the machine number stored in a note section. */
|
||||
|
|
Loading…
Reference in a new issue