[NaCl SDK] Fix create_nmf on dynamic bionic nexes
create_nmf runs objdump on its shared objects to determine what dependencies it has. libc.so is a dependency of bionic, and it is an ELF file. glibc has libc.so as well, but it is not an ELF file, but a linker script. There was a check in get_shared_deps.py that prevented running objdump on libc.so, if "bionic" is not in the path. Since we've added a package called "bionic_canary", "bionic" is always in the path, so objdump was being run on glibc's "libc.so", which fails. The (hack) fix is to check if a relative path from the root of the SDK has "bionic". This should only be true if the path is "toolchain/linux_arm_bionic/...". BUG=none R=sbc@chromium.org, noelallen@chromium.org TEST=test_all.py Review URL: https://codereview.chromium.org/341983002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278133 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment