{"id":15099898,"url":"https://github.com/luukdegram/zwld","last_synced_at":"2025-10-08T05:31:13.876Z","repository":{"id":45352433,"uuid":"407511188","full_name":"Luukdegram/zwld","owner":"Luukdegram","description":"Experimental wasm linker","archived":true,"fork":false,"pushed_at":"2022-12-19T15:27:41.000Z","size":353,"stargazers_count":42,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T20:43:54.188Z","etag":null,"topics":["linker","wasm","wasm-ld","wasm-linker","wasmlinker","webassembly","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luukdegram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-17T11:13:00.000Z","updated_at":"2024-12-28T02:34:36.000Z","dependencies_parsed_at":"2023-01-29T22:01:25.410Z","dependency_job_id":null,"html_url":"https://github.com/Luukdegram/zwld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Luukdegram/zwld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fzwld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fzwld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fzwld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fzwld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luukdegram","download_url":"https://codeload.github.com/Luukdegram/zwld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luukdegram%2Fzwld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892118,"owners_count":26063933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linker","wasm","wasm-ld","wasm-linker","wasmlinker","webassembly","zig","ziglang"],"created_at":"2024-09-25T17:40:36.415Z","updated_at":"2025-10-08T05:31:13.625Z","avatar_url":"https://github.com/Luukdegram.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zwld\n\n\u003e *Note:* This repository has been archived as all development is now being done in [zld](https://github.com/kubkon/zld) and the [Zig toolchain](https://github.com/ziglang/zig)\n\nExperimental linker for wasm object files.\nThe idea is to implement a linker that stays close to wasm-ld in regards to features\n~so that one day this could potentially be used within the Zig self-hosted compiler to incrementally\nlink Zig code with other wasm object files.~\nWith zwld now having been upstreamed, the main development of the linker is done directly within the Zig compiler. Features and improvements will be backported to zwld at one point. Until then, this repository is mostly inactive.\n\nWhile there's no official specification for linking, `zwld` follows the wasm [tool-convention](https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md) closely.\nThe initial goal is to support mvp features and have a base skeleton which would provide us with enough information on how\nto integrate this within the Zig compiler. The first step is to make static linking work as specified by `tool-convention`,\nonce that is completed, dynamic linking will be tackled.\n\n## Usage\n```\nUsage: zwld [options] [files...] -o [path]\n\nOptions:\n-h, --help                         Print this help and exit\n-o [path]                          Output path of the binary\n--entry \u003centry\u003e                    Name of entry point symbol\n--global-base=\u003cvalue\u003e              Value from where the global data will start\n--import-memory                    Import memory from the host environment\n--import-table                     Import function table from the host environment\n--initial-memory=\u003cvalue\u003e           Initial size of the linear memory\n--max-memory=\u003cvalue\u003e               Maximum size of the linear memory\n--merge-data-segments              Enable merging data segments\n--no-entry                         Do not output any entry point\n--stack-first                      Place stack at start of linear memory instead of after data\n--stack-size=\u003cvalue\u003e               Specifies the stack size in bytes\n--features=\u003cvalue\u003e                 Comma-delimited list of used features, inferred by object files if unset\n```\n\n## Building\n`zwld` uses the latest Zig, which can either be [built from source](https://github.com/ziglang/zig/wiki/Building-Zig-From-Source) or you can download\nthe latest [binary](https://ziglang.org/download).\nZwld can then be built running the following command:\n```\nzig build [-Denable-logging]\n```\nRight now zwld only contains debug logging, which is hidden behind the `enable-logging` flag. It is set to `false` by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluukdegram%2Fzwld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluukdegram%2Fzwld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluukdegram%2Fzwld/lists"}