{"id":18613468,"url":"https://github.com/termux/termux-elf-cleaner","last_synced_at":"2025-10-25T12:46:40.123Z","repository":{"id":41329883,"uuid":"87232611","full_name":"termux/termux-elf-cleaner","owner":"termux","description":"Utility to remove unused ELF sections causing warnings.","archived":false,"fork":false,"pushed_at":"2025-06-25T23:39:41.000Z","size":8984,"stargazers_count":251,"open_issues_count":4,"forks_count":65,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-10-02T18:39:23.671Z","etag":null,"topics":["android","elf","elf-sections","termux"],"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/termux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-04-04T20:37:15.000Z","updated_at":"2025-10-02T12:34:00.000Z","dependencies_parsed_at":"2023-10-16T11:56:14.448Z","dependency_job_id":"7c5adf8f-6050-49ca-af19-57998c0389b5","html_url":"https://github.com/termux/termux-elf-cleaner","commit_stats":{"total_commits":75,"total_committers":12,"mean_commits":6.25,"dds":0.3866666666666667,"last_synced_commit":"8449d0f3319a0f40b347b2c9654390def21ea5a5"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/termux/termux-elf-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termux%2Ftermux-elf-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termux%2Ftermux-elf-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termux%2Ftermux-elf-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termux%2Ftermux-elf-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/termux","download_url":"https://codeload.github.com/termux/termux-elf-cleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/termux%2Ftermux-elf-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001290,"owners_count":26083058,"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-09T02:00:07.460Z","response_time":59,"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":["android","elf","elf-sections","termux"],"created_at":"2024-11-07T03:22:20.316Z","updated_at":"2025-10-09T11:11:40.542Z","avatar_url":"https://github.com/termux.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# termux-elf-cleaner\n\nUtility for Android ELF files to remove unused parts that the linker warns about.\n\n## Description\n\nWhen loading ELF files, the Android linker warns about unsupported dynamic section entries with warnings such as:\n\n    WARNING: linker: /data/data/org.kost.nmap.android.networkmapper/bin/nmap: unused DT entry: type 0x6ffffffe arg 0x8a7d4\n    WARNING: linker: /data/data/org.kost.nmap.android.networkmapper/bin/nmap: unused DT entry: type 0x6fffffff arg 0x3\n\nThis utility strips away the following dynamic section entries:\n\n- `DT_RPATH` - not supported in any Android version.\n- `DT_GNU_HASH` - supported from Android 6.0.\n- `DT_RUNPATH` - supported from Android 7.0.\n- `DT_VERDEF` - supported from Android 6.0.\n- `DT_VERDEFNUM` - supported from Android 6.0.\n- `DT_VERNEED` - supported from Android 6.0.\n- `DT_VERNEEDNUM` - supported from Android 6.0.\n- `DT_VERSYM` - supported from Android 6.0.\n- `DT_AARCH64_BTI_PLT` - supported from Android 12.\n- `DT_AARCH64_PAC_PLT` - supported from Android 12.\n- `DT_AARCH64_VARIANT_PCS` - supported from Android 12.\n\nIt also removes the three ELF sections of type:\n\n- `SHT_GNU_verdef`\n- `SHT_GNU_verneed`\n- `SHT_GNU_versym`\n\nAnd makes sure that the alignment of a TLS segment is at least 32 (for 32bit arches) or 64 (for 64bit arches), to prevent errors similar to:\n\n```\nerror: \"valgrind\": executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic\n```\n\n## Usage\n\n```\nUsage: termux-elf-cleaner [OPTION-OR-FILENAME]...\n\nProcesses ELF files to remove unsupported section types and\ndynamic section entries which the Android linker warns about.\n\nOptions:\n\n--api-level NN        choose target api level, i.e. 21, 24, ..\n--dry-run             print info but but do not remove entries\n--quiet               do not print info about removed entries\n--help                display this help and exit\n--version             output version information and exit\n```\n\n## License\n\nSPDX-License-Identifier: [GPL-3.0-or-later](https://spdx.org/licenses/GPL-3.0-or-later.html)\n\n## See also\n\n* [Bionic's related docs](https://android.googlesource.com/platform/bionic/+/refs/heads/master/android-changes-for-ndk-developers.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermux%2Ftermux-elf-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftermux%2Ftermux-elf-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftermux%2Ftermux-elf-cleaner/lists"}