1 Mar
2009
1 Mar
'09
7:19 p.m.
Allan McRae schrieb:
This is the point of this comment: # Run in minimal chroot to avoid false positives due to dependencies. # Chroot can be built with: # sudo mkarchroot <chrootdir>/root glibc coreutils findutils grep tar gzip
So, in your example, if you are testing if libA needs a rebuild due to libC, you only extract libA in your chroot, not libB. The ldd can not chain its way to libC. So ti ends up doing the same thing as readelf.
Now I understand it. Still, if you use readelf it does not matter what the environment is, you could run it on any system which is not even Arch, or is the wrong architecture or anything.