Improve linker_verbose_tracking.py
linker_verbose_tracking.py is a useful script for understanding why particular symbols and object files get pulled in to Chrome binaries on Windows. Previously this script did its tracking purely by object file name, which breaks down for things like mime_util.obj because there are *four* object files with that name. This change updates the script so that it tracks the chain of dependencies using fully-specified object file names - basically foo.lib(bar.obj) instead of just bar.obj. This avoids the dead-ends and misleading information that occasionally happened with the previous version. In order to make this usable (specifying a fully-qualified object file name to search for is unwieldy) the search string is now understood to be any sub-string of the object file name. The set of matches is printed so that the search can easily be refined. It works much better now. This was made necessary by the investigation of the linked bug. R=stanisc@chromium.org BUG=717103 Change-Id: I25682e6d5b534c69d3743456918c60d42f746e10 Reviewed-on: https://chromium-review.googlesource.com/565221 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by:Stanislav Chiknavaryan <stanisc@chromium.org> Cr-Commit-Position: refs/heads/master@{#485425}
Showing
Please register or sign in to comment