Allow to specify toolchain for dump-static-initializers.py
commit8a8c2215c2bdd85b3d56864f23feebebe6f066c1
authormlopatkin <mlopatkin@yandex-team.ru>
Wed, 27 May 2015 08:58:56 +0000 (27 01:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 May 2015 08:59:24 +0000 (27 08:59 +0000)
treea6ebcd8f9eae0c3cf9e273a632c2c1c3938e2c50
parenteec50ea971dfcb5283a71bb9d4b9a351349c1dd9
Allow to specify toolchain for dump-static-initializers.py

By default dump-static-initializers.py uses objdump from the PATH which is
usually host system's default which supports x86/x86_64 but doesn't support
CPU architectures used on Android, like ARM or MIPS. This change allows
a developer to select toolchain from NDK by specifying prefix for the tools
with "-t ndk/toolchains/aarch64-linux-android-4.9/.../aarch64-linux-android-"
(full path shortened to fit in 80 symbols).

BUG=492513
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/1158153002

Cr-Commit-Position: refs/heads/master@{#331551}
tools/linux/dump-static-initializers.py