mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 04:52:54 +02:00
28312257c8
Currently WebAssembly has two kinds of relocations; data addresses and function addresses. This adds ELF relocations for them, as well as an MC symbol kind to indicate which type of relocation is needed. llvm-svn: 257416
9 lines
188 B
Modula-2
9 lines
188 B
Modula-2
|
|
#ifndef ELF_RELOC
|
|
#error "ELF_RELOC must be defined"
|
|
#endif
|
|
|
|
ELF_RELOC(R_WEBASSEMBLY_NONE, 0)
|
|
ELF_RELOC(R_WEBASSEMBLY_DATA, 1)
|
|
ELF_RELOC(R_WEBASSEMBLY_FUNCTION, 2)
|