From 8295173f8665ba60a3b6df56581b280b448cf6f4 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Sat, 25 Sep 2021 19:05:36 +0300 Subject: [PATCH] + added enums for the wasm symbol type and constnats for the bitflags --- compiler/wasmbase.pas | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/compiler/wasmbase.pas b/compiler/wasmbase.pas index ce2c4697b8..7c77b3fd6a 100644 --- a/compiler/wasmbase.pas +++ b/compiler/wasmbase.pas @@ -71,6 +71,24 @@ type WASM_COMDAT_INFO = 7, WASM_SYMBOL_TABLE = 8); + TWasmSymbolType = ( + SYMTAB_FUNCTION = 0, + SYMTAB_DATA = 1, + SYMTAB_GLOBAL = 2, + SYMTAB_SECTION = 3, + SYMTAB_EVENT = 4, + SYMTAB_TABLE = 5); + +const + { symbol flags } + WASM_SYM_BINDING_WEAK = $01; + WASM_SYM_BINDING_LOCAL = $02; + WASM_SYM_VISIBILITY_HIDDEN = $04; + WASM_SYM_UNDEFINED = $10; + WASM_SYM_EXPORTED = $20; + WASM_SYM_EXPLICIT_NAME = $40; + WASM_SYM_NO_STRIP = $80; + implementation end.