https://github.com/kost/android-elf-cleaner
Android ELF cleaner
https://github.com/kost/android-elf-cleaner
Last synced: 9 months ago
JSON representation
Android ELF cleaner
- Host: GitHub
- URL: https://github.com/kost/android-elf-cleaner
- Owner: kost
- License: gpl-3.0
- Created: 2016-06-29T07:32:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-01T06:06:43.000Z (about 10 years ago)
- Last Synced: 2025-04-14T04:08:34.454Z (over 1 year ago)
- Language: C
- Size: 17.6 KB
- Stars: 131
- Watchers: 7
- Forks: 33
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-elf-cleaner
Android ELF cleaner
Small utility to remove offending ELF entries:
- DT_VERNEEDED,
- DT_VERNEEDNUM
- DT_RPATH
- DT_RUNPATH
## Usage
```
usage: ./android-elf-cleaner
Processes ELF files to remove DT_VERNEEDED, DT_VERNEEDNUM, DT_RPATH
and DT_RUNPATH entries (which the Android linker warns about)
```
## Solution
This utility is solution to the following linker warnings:
```
WARNING: linker: /data/data/org.kost.nmap.android.networkmapper/bin/nmap: unused DT entry: type 0x6ffffffe arg 0x8a7d4
WARNING: linker: /data/data/org.kost.nmap.android.networkmapper/bin/nmap: unused DT entry: type 0x6fffffff arg 0x3
```
## Requirements
You need g++ 5.x version. It will not work on g++ 4.x version. For example, it works with 16.04 Ubuntu LTS, but
not with 14.04 Ubuntu LTS.
## License and credits
GPLv3 licensed. Based on termux ELF cleaner.