Commit Graph
14 Commits
Author SHA1 Message Date
YAMAMOTO TakashiandGitHub 6edabbf632 Add __umoddi3 to target symbol map in aot_reloc_arm.c (#828) 2021-11-10 16:53:14 +08:00
YAMAMOTO TakashiandGitHub d1be75c4a1 wamrc: return a non-zero exit code on failure (#822) 2021-11-09 13:13:20 +08:00
YAMAMOTO TakashiandGitHub 2613a68108 aot_reloc_x86_64: Fix pointer overflows (#809)
Fix pointer overflow of `(uint8 *)symbol_addr + reloc_addend` detected by UBSan:
```
core/iwasm/aot/arch/aot_reloc_x86_64.c:232:43: runtime error: addition of unsigned offset to 0x000041209004 overflowed to 0x000041209000
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior core/iwasm/aot/arch/aot_reloc_x86_64.c:232:43
```
2021-11-08 16:15:44 +08:00
YAMAMOTO TakashiandGitHub 68d72c300f Fix a wrong alignment assumption when emitting aot file (#792)
The size used to apply "size = align_uint(size, 4)" may be different
when calculating total size (in get_object_data_sections_size) and
emitting actual data (in aot_emit_object_data_section_info) for the
object data section.

This patch fixes the "Error: emit object data section info failed".
2021-10-19 17:11:24 +08:00
YAMAMOTO TakashiandGitHub 808ad2e4f1 Add __umodsi3 to target symbol map in aot_reloc_arm.c (#793)
The symbol _umodsi3 may be used by AOT file generated with "wamrc --target=armv7".
2021-10-19 17:04:09 +08:00
YAMAMOTO TakashiandGitHub ea835db54c Enable wamr-test-suites on MacOS (#740) 2021-09-10 10:11:46 +08:00
YAMAMOTO TakashiandGitHub 336abc2b27 Fix a build on alpine, whose libc is musl (#726)
Change __syscall_slong_t to __SYSCALL_SLONG_TYPE, and use it when macro __SYSCALL_SLONG_TYPE is defined.
2021-09-07 10:03:54 +08:00
YAMAMOTO TakashiandGitHub 79f163d08b Appease some UBSan complaints (#720) 2021-09-04 10:09:30 +08:00
YAMAMOTO TakashiandGitHub ee24d78483 Fix Debug build error with clang-11 on linux (#714)
Remove bound-strict flag from -fno-sanitize list in Linux Debug build with clang as clang-11 doesn't have bounds-strict
2021-09-01 18:36:27 +08:00
YAMAMOTO TakashiandGitHub e80715f352 lib-pthread: Fix pthread_create callback arg issue (#701)
The last argument arg of pthread_create passed from wasm app is opaque
for the library and host, it should be returned back to the wasm app without
any interpretation. There is no point to translate it to a native address.
Actually it harms because the validation seems broken.
2021-08-19 18:21:56 +08:00
YAMAMOTO TakashiandGitHub ef14ace027 small doc fixes (#700)
doc/embed_wamr.md: WASMModuleInstanceCommon -> wasm_module_inst_t
wamr-sdk/README.md: fix a link
2021-08-19 14:44:14 +08:00
YAMAMOTO TakashiandGitHub 15dd651539 Fix os_cond_timedwait and other issues for NuttX sim/macOS (#562) 2021-05-31 09:56:47 +08:00
YAMAMOTO TakashiandGitHub 2dd3875fd9 nuttx: Fix build for sim on macOS (#423) 2020-10-13 14:14:55 +08:00
YAMAMOTO TakashiandGitHub f7903caa65 wasm_loader_ctx_init: Don't use false as a pointer (#422) 2020-10-13 14:13:30 +08:00