Skip to content

kleisauke/elf-set-nodelete

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elf-set-nodelete

Tweaked version of termux-elf-cleaner to set RTLD_NODELETE on ELF files.

Usage

$ meson setup build --prefix=/usr --buildtype=release
$ meson compile -C build
$ meson install -C build

# Inspect
$ readelf -Wd /usr/lib64/libvips.so.42 | grep -F FLAGS_1
 0x000000006ffffffb (FLAGS_1)            Flags: NOW

# Dry run
$ sudo elf-set-nodelete --dry-run /usr/lib64/libvips.so.42
elf-set-nodelete: Replacing DF_1_* flags 1 with 9 in '/usr/lib64/libvips.so.42'

# For real
$ sudo elf-set-nodelete /usr/lib64/libvips.so.42
elf-set-nodelete: Replacing DF_1_* flags 1 with 9 in '/usr/lib64/libvips.so.42'

# Inspect
$ readelf -Wd /usr/lib64/libvips.so.42 | grep -F FLAGS_1
 0x000000006ffffffb (FLAGS_1)            Flags: NOW NODELETE

About

Utility to set `RTLD_NODELETE` on ELF files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 66.9%
  • C++ 30.5%
  • Makefile 1.9%
  • Meson 0.7%