Crates.io | elfpromote |
lib.rs | elfpromote |
version | 0.1.0 |
source | src |
created_at | 2022-07-16 14:58:54.917513 |
updated_at | 2022-07-16 14:58:54.917513 |
description | Promote ELF shared library load order. |
homepage | |
repository | |
max_upload_size | |
id | 626760 |
size | 29,293 |
A small utility for modifying ELF shared library loading order.
$ cargo install elfpromote
$ ldd blueboat_server
linux-vdso.so.1 (0x00007ffe4597b000)
libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fc6c5df2000)
libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007fc6c5dd0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc6c5bde000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc6c91ac000)
libfdb_c.so => /lib/libfdb_c.so (0x00007fc6c47ed000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc6c47d1000)
...
$ elfpromote ./blueboat_server -o blueboat_server.promoted --lib libfdb_c.so
$ ldd blueboat_server.promoted
linux-vdso.so.1 (0x00007fffba59e000)
libfdb_c.so => /lib/libfdb_c.so (0x00007f06257a1000)
libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f0625678000)
libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007f0625656000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0625464000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0629e23000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0625448000)
...