fix: fix load aarch64 aot failed (#4114)

Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
This commit is contained in:
jia xiang
2025-03-04 16:45:47 +08:00
committed by GitHub
parent e693608476
commit 73998e4c85
2 changed files with 3 additions and 2 deletions

View File

@ -590,7 +590,8 @@ load_target_info_section(const uint8 *buf, const uint8 *buf_end,
}
/* for backwards compatibility with previous wamrc aot files */
if (!strcmp(target_info.arch, "arm64"))
if (!strcmp(target_info.arch, "arm64")
|| !strcmp(target_info.arch, "aarch64"))
bh_strcpy_s(target_info.arch, sizeof(target_info.arch), "aarch64v8");
/* Check machine info */