-
Notifications
You must be signed in to change notification settings - Fork 282
Description
I know there are/were plans to extend peports to test deps recursively, however, this can also be done in a sh script, relatively trivially (and assuming the lookup procedure is well documented).
What cannot be done trivially in sh, however, is to ensure that the detected deps match the arch of original file, and this is cricial while walking the deps, as mismatching arch of the dep should abort this dep. Maybe it should keep looking for this dep elsewhere in PATH, but I'm not very familiar with windows dll lookup procedure.
So I request a feature: some option to print the arch of a binary (and nothing else), so that a script could capture the arch of the original file, and compare it to the arch of dependencies it identifies as potential matches.
I don't know how the arch is encoded at the binary, buf if it's not "x86_64", "i386", etc, then there's a question of whether or not to print it more human-friendly, like the strings above. I don't think that's required, but even if it is implemented, then it should still be possible to use it with an unknown arch value of the binary (a number or however else the arch is stored at the binary), so that it's still usable with unknown archs.
Thanks.