{"id":20098628,"url":"https://github.com/pfnet/sold","last_synced_at":"2025-08-31T22:34:42.295Z","repository":{"id":178197604,"uuid":"660506432","full_name":"pfnet/sold","owner":"pfnet","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-27T08:14:27.000Z","size":563,"stargazers_count":8,"open_issues_count":8,"forks_count":1,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-07-13T13:43:41.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfnet.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,"zenodo":null}},"created_at":"2023-06-30T06:57:09.000Z","updated_at":"2025-05-27T08:14:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e8deabb-d970-4a76-a0fd-e7c6882145f1","html_url":"https://github.com/pfnet/sold","commit_stats":null,"previous_names":["pfnet/sold"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pfnet/sold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Fsold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Fsold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Fsold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Fsold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfnet","download_url":"https://codeload.github.com/pfnet/sold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Fsold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273051831,"owners_count":25037073,"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-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-11-13T17:06:05.825Z","updated_at":"2025-08-31T22:34:42.237Z","avatar_url":"https://github.com/pfnet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sold\n`sold` is a linker software which links a shared objects and its depending\nshared objects. For example,\n```bash\n% ldd libhoge.so\n    libfuga.so (0x00007fb6550b2000)\n% sold -i libhoge.so -o libhoge2.so\n% ldd libhoge2.so\n%\n```\n`sold` works only for shared objects not for executables. Sorry.\n\n## Branches\n- `master`: I am developing on this branch.\n- `stable`: Stable version of master for our internal use.\n\n## Requirements\n`sold` works only on Linux on x86-64 and aarch64 architectures.\n\n## How to build\n```bash\ngit clone https://github.com/akawashiro/sold.git\ncd sold\nmkdir -p build\ncd build\ncmake ..\nmake\n```\nNow you can see the `sold` in `build` directory.\n\n## How to use\n```bash\nsold -i [INPUT] -o [OUTPUT]\n```\nOptions\n- `--section-headers`: Emit section headers. Output shared objects work without section headers but they are useful for debugging.\n- `--check-output`: Check integrity of the output by parsing it again.\n- `--exclude-so`: Specify a shared object not to combine.\n\n# Renamer\n`renamer` is software to rename symbols in shared objects.  You can rename symbols in shared objects like the following.\n```\n% cat mapping\nhoge fugafuga\n% renamer libhoge_original.so --output libhoge_renamed.so --rename-mapping-file mapping\n```\n\n## Requirements \u0026 How to build\nJust same as `sold`.\n\n## How to use\n```bash\nrenamer [INPUT] --output [OUTPUT] --rename-mapping-file [MAPPING]\n```\nAll lines in [MAPPING] must be a space separated pair of the old name of a symbol and the new name.\n\n# For developers\nPlease run \"./run-format.sh\" before merging to master branch.\n\n## TODO\n- Executables\n- TLS in executables\n    - Initial exec and local exec\n- x86-32\n- Test Fedora linux in CI\n\n## Integration test with practical libraries\n### pybind test\nThe purpose of this test is to check `sold` can preserve the complex ABI.\n```bash\ngit clone https://github.com/akawashiro/sold.git\ncd sold\nmkdir -p build\ncmake -S . -B build -DSOLD_PYBIND_TEST=ON -G Ninja\ncmake --build build\nctest --test-dir build\n```\n## libtorch test\nNote: You can generate libtorch using `./build-pytorch.sh`. This script install libtorch to `sold/pytorch-install`.\n```\ngit clone https://github.com/akawashiro/sold.git\ncd sold\nmkdir -p build\ncmake -B build -S . -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch/dir -DSOLD_LIBTORCH_TEST=ON -GNinja\ncmake --build build\nctest --test-dir build\n```\n## pybind + libtorch test\nNote: You can generate libtorch using `./build-pytorch.sh`. This script install libtorch to `sold/pytorch-install`.\n```\ngit clone https://github.com/akawashiro/sold.git\ncd sold\ncmake -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch/dir -DSOLD_LIBTORCH_TEST=ON -DSOLD_PYBIND_TEST=ON -GNinja -B build -S .\ncmake --build build\nctest --test-dir build\n```\n\n\n## Test with Docker\n```\nsudo docker build -f ubuntu18.04.Dockerfile .\nsudo docker build -f ubuntu20.04.Dockerfile .\nsudo docker build -f ubuntu22.04.Dockerfile .\nsudo docker build -f fedora-latest.Dockerfile .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Fsold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfnet%2Fsold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Fsold/lists"}