| Crates.io | elb-cli |
| lib.rs | elb-cli |
| version | 0.3.2 |
| created_at | 2025-03-30 20:45:56.956332+00 |
| updated_at | 2025-04-19 20:21:12.49528+00 |
| description | Command-line utility that inspects ELF files, prints their dependencies and patches RPATH, RUNPATH and interpreter. |
| homepage | https://github.com/igankevich/elb |
| repository | https://github.com/igankevich/elb |
| max_upload_size | |
| id | 1612749 |
| size | 49,671 |
Command-line utility for ELF files with the following features.
RPATH, RUNPATH and program interpreter.RUNPATH and program interpreter).Based on elb crate.
cargo install elb-cli
# symlink `elb-cli` to `elb`
ln -s $(which elb-cli) $(dirname $(which elb-cli))/elb
$ elb show -t header /bin/sh
Class: Elf64
Byte order: LittleEndian
OS ABI: Sysv
ABI version: 0
File type: Executable
Machine: X86_64
Flags: 0x0
Entry point: 0x41fa60
Program header: 0x40..0x318
Section header: 0xdcce8..0xdd3e8
$ elb show -t all /bin/sh
...
$ elb deps -f list --names-only /bin/ls
libgcc_s.so.1
ld-linux-x86-64.so.2
libc.so.6
libcap.so.2.64
$ elb deps -f tree --names-only /bin/ls
ls
├── libcap.so.2.64
│ ├── libgcc_s.so.1
│ │ ╰── libc.so.6
│ │ ╰── ld-linux-x86-64.so.2
│ ├── libc.so.6
│ │ ╰── ld-linux-x86-64.so.2
│ ╰── ld-linux-x86-64.so.2
├── libc.so.6
│ ╰── ld-linux-x86-64.so.2
╰── ld-linux-x86-64.so.2
$ elb patch \
--set-interpreter /chroot/lib64/ld-linux-x86-64.so.2 \
--set-dynamic RUNPATH=/chroot/lib64:/chroot/usr/lib64 \
/chroot/bin/ls