Просмотр исходного кода

Add Android macro check for indirect mode

James Marsh 4 месяцев назад
Родитель
Сommit
9ee44bf2d0
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      core/iwasm/aot/aot_loader.c

+ 3 - 2
core/iwasm/aot/aot_loader.c

@@ -3899,8 +3899,9 @@ load_relocation_section(const uint8 *buf, const uint8 *buf_end,
             || !strcmp(group->section_name, ".text")
 #endif
         ) {
-#if !defined(BH_PLATFORM_LINUX) && !defined(BH_PLATFORM_LINUX_SGX) \
-    && !defined(BH_PLATFORM_DARWIN) && !defined(BH_PLATFORM_WINDOWS)
+#if !defined(BH_PLATFORM_LINUX) && !defined(BH_PLATFORM_LINUX_SGX)   \
+    && !defined(BH_PLATFORM_DARWIN) && !defined(BH_PLATFORM_WINDOWS) \
+    && !defined(BH_PLATFORM_ANDROID)
             if (module->is_indirect_mode) {
                 set_error_buf(error_buf, error_buf_size,
                               "cannot apply relocation to text section "