mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Fix ARM and AArch64 assembler tests to work in a multi-arch environment.
PR 29764 gas * testsuite/gas/arm/cpu-cortex-a76ae.d: Add arm prefix to the -m option passed to objdump. * testsuite/gas/arm/cpu-cortex-a77.d: Likewise. * testsuite/gas/aarch64/cpu-cortex-a76ae.d: Add aarch64 prefix to the -m option passed to objdump. * testsuite/gas/aarch64/cpu-cortex-a77.d: Likewise. bfd * cpu-arm.c (scan): Accept machine names prefixed with "arm:". * cpu-aarch64.c (scan): Accept machine names prefixed with "aarch64:". bin * doc/binutils.texi (objdump): Note that the -m option supports the <architecture>:<machine> syntax.
This commit is contained in:
@@ -210,6 +210,15 @@ scan (const struct bfd_arch_info *info, const char *string)
|
||||
if (strcasecmp (string, info->printable_name) == 0)
|
||||
return true;
|
||||
|
||||
/* If there is a prefix of "arm:" then skip it. */
|
||||
const char * colon;
|
||||
if ((colon = strchr (string, ':')) != NULL)
|
||||
{
|
||||
if (strncasecmp (string, "arm", colon - string) != 0)
|
||||
return false;
|
||||
string = colon + 1;
|
||||
}
|
||||
|
||||
/* Next check for a processor name instead of an Architecture name. */
|
||||
for (i = sizeof (processors) / sizeof (processors[0]); i--;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user