Enable sample/simple for aarch64 (#616)

Fixed a typo in aot_reloc_aarch64.c.
Remove -m32 option in host tool CMakeLists.txt and change data type of structure fields to make host tool work in 64-bit.

Signed-off-by: Bao Haojun <baohaojun@lixiang.com>
This commit is contained in:
Bao Haojun
2021-04-25 19:12:49 +08:00
committed by GitHub
parent 684d766e2b
commit a332a49a0d
7 changed files with 94 additions and 8 deletions

View File

@ -60,7 +60,7 @@ get_current_target(char *target_buf, uint32 target_buf_size)
char *d = target_buf;
/* Set to "aarch64v8" by default if sub version isn't specified */
if (strcmp(s, "AARACH64") == 0) {
if (strcmp(s, "AARCH64") == 0) {
s = BUILD_TARGET_AARCH64_DEFAULT;
s_size = sizeof(BUILD_TARGET_AARCH64_DEFAULT);
}
@ -385,4 +385,3 @@ overflow_check_fail:
"target address out of range.");
return false;
}