mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 21:51:42 +02:00
[PATCH 026/188] Update README.md
From cc49f2c41af91b6fa17b4ae46edc80e5bc5f908a Mon Sep 17 00:00:00 2001 From: Dmitry Boyarintsev <skalogryz.lists@gmail.com> Date: Fri, 27 Sep 2019 22:50:54 -0400 git-svn-id: branches/wasm@46022 -
This commit is contained in:
parent
170d5d72b0
commit
3ba46c7761
@ -1,2 +1,32 @@
|
||||
# wasmbin
|
||||
webassembly bin
|
||||
Collection of WebAssembly binary utils
|
||||
|
||||
## wasmtool
|
||||
wasmtool is an utility that allows to modify wasm binary linking information. wat2wasm util is capable of generating binaries with relocation information. However the symbol flags are setup in the manner that final binaries cannot be linked by wasm-ld utility. (i.e. non setting weak symbols).
|
||||
|
||||
### options
|
||||
--exportrename inputfile
|
||||
The option allow to change the export name. The reasoning for that is wasm-ld behavior of renaming the export from the declared name to the symbol name.
|
||||
|
||||
The input file can be either a text file, containing a list of oldname new name values:
|
||||
|
||||
OldExportName=NewExportName
|
||||
or the input file can point to an object file. The object file's export section is parsed for the desired export names.
|
||||
|
||||
--symbolflag inputfile
|
||||
The action allows to modify flags for the specified symbols.
|
||||
The input file specified must contain the pairs of symbolname + desired flags.
|
||||
|
||||
$TESTUNIT_$$_ADD$LONGINT$LONGINT$$LONGINT=WH
|
||||
The desired flag is a string (or a character) that should consists of the following characters. Each character corresponds to a certain symbol linking flag:
|
||||
|
||||
* W - WASM_SYM_BINDING_WEAK
|
||||
|
||||
* H - WASM_SYM_VISIBILITY_HIDDEN
|
||||
|
||||
* L - WASM_SYM_BINDING_LOCAL
|
||||
|
||||
* D - removes flag WASM_SYM_BINDING_LOCAL
|
||||
|
||||
--symbolauto
|
||||
The flags for each symbol updated and is determined based of the symbol use:
|
||||
|
Loading…
Reference in New Issue
Block a user