All Projects → termux → termux-elf-cleaner

termux / termux-elf-cleaner

Licence: GPL-3.0 license
Utility to remove unused ELF sections causing warnings.

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
Makefile
30231 projects
M4
1887 projects
shell
77523 projects

Projects that are alternatives of or similar to termux-elf-cleaner

elf-stuff
Compilation of ELF Packers and ELF obfuscation / Anti-Debugging stuff
Stars: ✭ 20 (-86.21%)
Mutual labels:  elf
dcc
Direct/Interactive C Compiler
Stars: ✭ 18 (-87.59%)
Mutual labels:  elf
Exagear-For-Termux
Non official modified version of Exagear for Termux and proot based environemnts - Anlinux, AndroNix, UserLand and etc.
Stars: ✭ 98 (-32.41%)
Mutual labels:  termux
IpHack
Track Location With Live Address And City in Termux
Stars: ✭ 315 (+117.24%)
Mutual labels:  termux
Free-Proxy
Hi there will be a lot of proxies here.
Stars: ✭ 135 (-6.9%)
Mutual labels:  termux
overload
📡 Overload DoS Tool (Layer 7)
Stars: ✭ 167 (+15.17%)
Mutual labels:  termux
ELFPatch
A library for patching ELFs
Stars: ✭ 46 (-68.28%)
Mutual labels:  elf
manjaro-fs-arm64
Manjaro rootfs with xfce4 and vncserver preinstalled. Just setup username, password and vnc password. Also one more edition with latest Anki preinstalled.
Stars: ✭ 19 (-86.9%)
Mutual labels:  termux
Crazy-Banner
custom banner editor script for Termux
Stars: ✭ 60 (-58.62%)
Mutual labels:  termux
RWST
Red Widow Spider Tools
Stars: ✭ 26 (-82.07%)
Mutual labels:  termux
buildAPKsApps
Android APK app sources that build in Termux on Amazon Fire, Android and Chromebook! https://sdrausty.github.io/buildAPKsApps/
Stars: ✭ 32 (-77.93%)
Mutual labels:  termux
Termux-login
Advanced login system for termux
Stars: ✭ 125 (-13.79%)
Mutual labels:  termux
seeu
SeeU is a camera hacking tool which is used to hack selfie camera of devices....
Stars: ✭ 313 (+115.86%)
Mutual labels:  termux
abireport
Tool to create ABI reports from ELF binaries in packaging
Stars: ✭ 16 (-88.97%)
Mutual labels:  elf
binary-security-check
Analyzer of security features in executable binaries
Stars: ✭ 36 (-75.17%)
Mutual labels:  elf
CVIP
C/C++/Golang/Linux...知识整理
Stars: ✭ 62 (-57.24%)
Mutual labels:  elf
telfhash
Symbol hash for ELF files
Stars: ✭ 75 (-48.28%)
Mutual labels:  elf
elf-ng-router-store
Bindings to connect Angular router to Elf
Stars: ✭ 20 (-86.21%)
Mutual labels:  elf
belf
Balika011's PlayStation 4 ELF loader for IDA Pro 7.0/7.1
Stars: ✭ 31 (-78.62%)
Mutual labels:  elf
Orangex-Mobile
A useful tool chain for mobile coding with termux.
Stars: ✭ 20 (-86.21%)
Mutual labels:  termux

termux-elf-cleaner

Utility for Android ELF files to remove unused parts that the linker warns about.

Description

When loading ELF files, the Android linker warns about unsupported dynamic section entries with warnings such as:

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

This utility strips away the following dynamic section entries:

  • DT_RPATH - not supported in any Android version.
  • DT_GNU_HASH - supported from Android 6.0.
  • DT_RUNPATH - supported from Android 7.0.
  • DT_VERDEF - supported from Android 6.0.
  • DT_VERDEFNUM - supported from Android 6.0.
  • DT_VERNEEDED - supported from Android 6.0.
  • DT_VERNEEDNUM - supported from Android 6.0.
  • DT_VERSYM - supported from Android 6.0.
  • DT_AARCH64_BTI_PLT - supported from Android 12.
  • DT_AARCH64_PAC_PLT - supported from Android 12.
  • DT_AARCH64_VARIANT_PCS - supported from Android 12.

It also removes the three ELF sections of type:

  • SHT_GNU_verdef
  • SHT_GNU_verneed
  • SHT_GNU_versym

And 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:

error: "valgrind": executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic

Usage

Usage: termux-elf-cleaner [OPTION-OR-FILENAME]...

Processes ELF files to remove unsupported section types and
dynamic section entries which the Android linker warns about.

Options:

--api-level NN        choose target api level, i.e. 21, 24, ..
--dry-run             print info but but do not remove entries
--quiet               do not print info about removed entries
--help                display this help and exit
--version             output version information and exit

License

SPDX-License-Identifier: GPL-3.0-or-later

See also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].