Question: Finding libraries that are required for busybox??
Eli Schwartz
eschwartz at archlinux.org
Mon Jun 25 19:30:21 UTC 2018
On 06/25/2018 03:20 PM, Jody Bruchon wrote:
> By the way, you can also grab the relocations directly from the
> binary with this horrific expression (replace the path as needed):
>
> readelf -d /bin/busybox | sed 's/.*\[\([^]]*\)]/\1/'
>
> Scary but effective.
That's some very complicated sed there, and it also doesn't suppress the
non-matched lines with -n, and you could skip several of those escapes
by using -r
Alternatively:
objdump -p /bin/busybox | awk '/NEEDED/{print $2}'
Effective, not scary at all.
--
Eli Schwartz
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180625/38ead11b/attachment-0001.asc>
More information about the busybox
mailing list