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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox