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

change the alignment, which might potentially casue problem. (#258)

liurenju 5 лет назад
Родитель
Сommit
0529815f34
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      product-mini/platforms/zephyr/simple/src/test_wasm.h

+ 1 - 1
product-mini/platforms/zephyr/simple/src/test_wasm.h

@@ -8,7 +8,7 @@
  * which is compiled by emcc or clang toolchain from C source file of:
  *   core/iwasm/app-samples/hello-world/main.c.
  */
-unsigned char wasm_test_file[] = { 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00,
+unsigned char __aligned(4) wasm_test_file[] = { 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00,
         0x00, 0x00, 0x0D, 0x06, 0x64, 0x79, 0x6C, 0x69, 0x6E, 0x6B, 0xC0, 0x80,
         0x04, 0x04, 0x00, 0x00, 0x01, 0x13, 0x04, 0x60, 0x01, 0x7F, 0x00, 0x60,
         0x01, 0x7F, 0x01, 0x7F, 0x60, 0x02, 0x7F, 0x7F, 0x01, 0x7F, 0x60, 0x00,