forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebAssembly] Define an initial set of relocation types for Wasm.
This set will likely evolve, along with the Wasm linking ABI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296177 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Dan Gohman
committed
Feb 24, 2017
1 parent
e3a136c
commit 43d5d8c
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#ifndef WASM_RELOC | ||
#error "WASM_RELOC must be defined" | ||
#endif | ||
|
||
WASM_RELOC(R_WEBASSEMBLY_FUNCTION_INDEX_LEB, 0) | ||
WASM_RELOC(R_WEBASSEMBLY_TABLE_INDEX_SLEB, 1) | ||
WASM_RELOC(R_WEBASSEMBLY_TABLE_INDEX_I32, 2) | ||
WASM_RELOC(R_WEBASSEMBLY_GLOBAL_ADDR_LEB, 3) | ||
WASM_RELOC(R_WEBASSEMBLY_GLOBAL_ADDR_SLEB, 4) | ||
WASM_RELOC(R_WEBASSEMBLY_GLOBAL_ADDR_I32, 5) |