Skip to content
Android ELF cleaner
C C++ Makefile
Branch: master
Clone or download
kost Update README.md
Describe problem it solves
Latest commit 5e86a99 Jul 1, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 29, 2016
LICENSE Initial commit Jun 29, 2016
Makefile Remove termux legacy Jun 29, 2016
README.md Update README.md Jul 1, 2016
android-elf-cleaner.cpp Remove termux legacy Jun 29, 2016
elf.h Initial import Jun 29, 2016

README.md

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 <filename>
       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.

You can’t perform that action at this time.