Browse Source

[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 years ago
parent
commit
637b558629
1 changed files with 1 additions and 1 deletions
  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)  // 3F  memory_size
    ,(doReloc: false; relocType: $FF)  // 40  memory_grow
    ,(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)  // 42  i64_const
    ,(doReloc: false; relocType: $FF)  // 43  f32_const
    ,(doReloc: false; relocType: $FF)  // 43  f32_const