Commit 4f45d62a authored by George G. Davis's avatar George G. Davis Committed by Masahiro Yamada
Browse files

scripts/ Fix arm64 wrong or unknown architecture

The following error occurs for the `make ARCH=arm64 checkstack` case:

aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \
perl ./scripts/ arm64
wrong or unknown architecture "arm64"

As suggested by Masahiro Yamada, fix the above error using regular
expressions in the same way it was fixed for the `ARCH=x86` case via
commit fda9f990

 ("scripts/ automatically handle
32-bit and 64-bit mode for ARCH=x86").
Suggested-by: Masahiro Yamada's avatarMasahiro Yamada <>
Signed-off-by: default avatarGeorge G. Davis <>
Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <>
parent a6e04877
......@@ -46,7 +46,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
$x = "[0-9a-f]"; # hex character
$xs = "[0-9a-f ]"; # hex character or space
$funcre = qr/^$x* <(.*)>:$/;
if ($arch eq 'aarch64') {
if ($arch =~ '^(aarch|arm)64$') {
#ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
#a110: d11643ff sub sp, sp, #0x590
$re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment