| ... | @@ -517,6 +517,7 @@ const usage_build_generic = | ... | @@ -517,6 +517,7 @@ const usage_build_generic = |
| 517 | \\ -dead_strip (Darwin) remove functions and data that are unreachable by the entry point or exported symbols | 517 | \\ -dead_strip (Darwin) remove functions and data that are unreachable by the entry point or exported symbols |
| 518 | \\ -dead_strip_dylibs (Darwin) remove dylibs that are unreachable by the entry point or exported symbols | 518 | \\ -dead_strip_dylibs (Darwin) remove dylibs that are unreachable by the entry point or exported symbols |
| 519 | \\ --import-memory (WebAssembly) import memory from the environment | 519 | \\ --import-memory (WebAssembly) import memory from the environment |
| | 520 | \\ --import-symbols (WebAssembly) import missing symbols from the host environment |
| 520 | \\ --import-table (WebAssembly) import function table from the host environment | 521 | \\ --import-table (WebAssembly) import function table from the host environment |
| 521 | \\ --export-table (WebAssembly) export function table to the host environment | 522 | \\ --export-table (WebAssembly) export function table to the host environment |
| 522 | \\ --initial-memory=[bytes] (WebAssembly) initial size of the linear memory | 523 | \\ --initial-memory=[bytes] (WebAssembly) initial size of the linear memory |
| ... | @@ -718,6 +719,7 @@ fn buildOutputType( | ... | @@ -718,6 +719,7 @@ fn buildOutputType( |
| 718 | var linker_allow_shlib_undefined: ?bool = null; | 719 | var linker_allow_shlib_undefined: ?bool = null; |
| 719 | var linker_bind_global_refs_locally: ?bool = null; | 720 | var linker_bind_global_refs_locally: ?bool = null; |
| 720 | var linker_import_memory: ?bool = null; | 721 | var linker_import_memory: ?bool = null; |
| | 722 | var linker_import_symbols: bool = false; |
| 721 | var linker_import_table: bool = false; | 723 | var linker_import_table: bool = false; |
| 722 | var linker_export_table: bool = false; | 724 | var linker_export_table: bool = false; |
| 723 | var linker_initial_memory: ?u64 = null; | 725 | var linker_initial_memory: ?u64 = null; |
| ... | @@ -1316,6 +1318,8 @@ fn buildOutputType( | ... | @@ -1316,6 +1318,8 @@ fn buildOutputType( |
| 1316 | } | 1318 | } |
| 1317 | } else if (mem.eql(u8, arg, "--import-memory")) { | 1319 | } else if (mem.eql(u8, arg, "--import-memory")) { |
| 1318 | linker_import_memory = true; | 1320 | linker_import_memory = true; |
| | 1321 | } else if (mem.eql(u8, arg, "--import-symbols")) { |
| | 1322 | linker_import_symbols = true; |
| 1319 | } else if (mem.eql(u8, arg, "--import-table")) { | 1323 | } else if (mem.eql(u8, arg, "--import-table")) { |
| 1320 | linker_import_table = true; | 1324 | linker_import_table = true; |
| 1321 | } else if (mem.eql(u8, arg, "--export-table")) { | 1325 | } else if (mem.eql(u8, arg, "--export-table")) { |
| ... | @@ -1837,6 +1841,8 @@ fn buildOutputType( | ... | @@ -1837,6 +1841,8 @@ fn buildOutputType( |
| 1837 | linker_bind_global_refs_locally = true; | 1841 | linker_bind_global_refs_locally = true; |
| 1838 | } else if (mem.eql(u8, arg, "--import-memory")) { | 1842 | } else if (mem.eql(u8, arg, "--import-memory")) { |
| 1839 | linker_import_memory = true; | 1843 | linker_import_memory = true; |
| | 1844 | } else if (mem.eql(u8, arg, "--import-symbols")) { |
| | 1845 | linker_import_symbols = true; |
| 1840 | } else if (mem.eql(u8, arg, "--import-table")) { | 1846 | } else if (mem.eql(u8, arg, "--import-table")) { |
| 1841 | linker_import_table = true; | 1847 | linker_import_table = true; |
| 1842 | } else if (mem.eql(u8, arg, "--export-table")) { | 1848 | } else if (mem.eql(u8, arg, "--export-table")) { |
| ... | @@ -2977,6 +2983,7 @@ fn buildOutputType( | ... | @@ -2977,6 +2983,7 @@ fn buildOutputType( |
| 2977 | .linker_allow_shlib_undefined = linker_allow_shlib_undefined, | 2983 | .linker_allow_shlib_undefined = linker_allow_shlib_undefined, |
| 2978 | .linker_bind_global_refs_locally = linker_bind_global_refs_locally, | 2984 | .linker_bind_global_refs_locally = linker_bind_global_refs_locally, |
| 2979 | .linker_import_memory = linker_import_memory, | 2985 | .linker_import_memory = linker_import_memory, |
| | 2986 | .linker_import_symbols = linker_import_symbols, |
| 2980 | .linker_import_table = linker_import_table, | 2987 | .linker_import_table = linker_import_table, |
| 2981 | .linker_export_table = linker_export_table, | 2988 | .linker_export_table = linker_export_table, |
| 2982 | .linker_initial_memory = linker_initial_memory, | 2989 | .linker_initial_memory = linker_initial_memory, |