{"id":15101411,"url":"https://github.com/ergrelet/llvm-ebc-lddump","last_synced_at":"2026-02-07T11:32:14.192Z","repository":{"id":253319962,"uuid":"843062987","full_name":"ergrelet/llvm-ebc-lddump","owner":"ergrelet","description":"Fake linker plugin compatible with lld and GNU ld, which dumps the linker's command-line in a file.","archived":false,"fork":false,"pushed_at":"2024-08-17T14:57:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T11:49:49.689Z","etag":null,"topics":["clang","linker","llvm","llvm-bitcode","plugin"],"latest_commit_sha":null,"homepage":"","language":"C","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/ergrelet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T17:46:02.000Z","updated_at":"2024-09-07T07:05:37.000Z","dependencies_parsed_at":"2024-08-15T23:29:33.678Z","dependency_job_id":"6b852b82-c436-4309-89fb-c11cb3ddf441","html_url":"https://github.com/ergrelet/llvm-ebc-lddump","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"3d00b98e94fbe73593e0aa28d89620bca11a2ae3"},"previous_names":["ergrelet/llvm-ebc-lddump"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ergrelet/llvm-ebc-lddump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergrelet%2Fllvm-ebc-lddump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergrelet%2Fllvm-ebc-lddump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergrelet%2Fllvm-ebc-lddump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergrelet%2Fllvm-ebc-lddump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ergrelet","download_url":"https://codeload.github.com/ergrelet/llvm-ebc-lddump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergrelet%2Fllvm-ebc-lddump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clang","linker","llvm","llvm-bitcode","plugin"],"created_at":"2024-09-25T18:22:22.384Z","updated_at":"2026-02-07T11:32:14.177Z","avatar_url":"https://github.com/ergrelet.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# llvm-ebc-lddump\n\nFake linker plugin compatible with lld and GNU ld, which dumps the linker's\ncommand-line in a file. This is meant to be used with clang's `-fembed-bitcode`\non platforms where bitcode embedding doesn't include linker options.\n\nDisclaimer: the code works as is but isn't meant to be production-ready.\n\n## Supported Platforms\n\n- Linux (GNU ld, lld)\n- Windows (lld)\n\n## How to Build\n\n### Linux\n\n```\ncmake -B build -DCMAKE_BUILD_TYPE=Release \u0026\u0026 cmake --build build\n```\n\n### Windows\n\n```\ncmake -B build \u0026\u0026 cmake --build build --config Release\n```\n\n## How to Use\n\n### Linux\n\n#### lld\n\nWhen using clang with lld, you can use the plugin like so:\n\n```\nclang -O2 -fuse-ld=lld -fembed-bitcode -Wl,-mllvm=-load=/path/to/libplugin.so file.c\n```\n\n#### GNU ld\n\nWhen using clang with GNU ld, you can use the plugin like so:\n\n```\nclang -O2 -fembed-bitcode -Wl,-plugin=/path/to/libplugin.so file.c\n```\n\n### Windows\n\n#### lld\n\nWhen using clang with lld, you can use the plugin like so:\n\n```\nclang -O2 -fuse-ld=lld -fembed-bitcode -Wl,/mllvm:-load=C:\\\\path\\\\to\\\\plugin.dll file.c\n```\n\n## Output\n\nThe linker options are dumped into a file located next to the output\nexecutable, with the `.llvmldcmd` extension.\n\nMuch like the `.llvmcmd` section generated by the linker, the output file\ngenerated by the plugin contains each command-line argument separated by NUL\nchars. However, please note that the first argument will be the linker's file\npath.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergrelet%2Fllvm-ebc-lddump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fergrelet%2Fllvm-ebc-lddump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergrelet%2Fllvm-ebc-lddump/lists"}