浏览代码

[PATCH 102/188] using R_WASM_TABLE_INDEX_SLEB for i32.const as a
relocation symbol

From 8843e04dc76e1ffd70d1d227bb8cbba61237a8f5 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Tue, 17 Mar 2020 15:02:07 -0400

git-svn-id: branches/wasm@46098 -

nickysn 5 年之前
父节点
当前提交
637b558629
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/wasmbin/wasmlink.pas

+ 1 - 1
utils/wasmbin/wasmlink.pas

@@ -229,7 +229,7 @@ const
    ,(doReloc: false; relocType: $FF)  // 3F  memory_size
    ,(doReloc: false; relocType: $FF)  // 40  memory_grow
 
-   ,(doReloc: true;  relocType: R_WASM_FUNCTION_INDEX_LEB)  // 41  i32_const // TODO: special case for function address
+   ,(doReloc: true;  relocType: R_WASM_TABLE_INDEX_SLEB)  // 41  i32_const // TODO: special case for function address
 
    ,(doReloc: false; relocType: $FF)  // 42  i64_const
    ,(doReloc: false; relocType: $FF)  // 43  f32_const