Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Issue 341983002: [NaCl SDK] Fix create_nmf on dynamic bionic nexes (Closed)

Created:
6 years, 6 months ago by binji
Modified:
6 years, 6 months ago
Reviewers:
noelallen1, Sam Clegg
CC:
chromium-reviews, binji+watch_chromium.org, Sam Clegg
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278133

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M native_client_sdk/src/tools/lib/get_shared_deps.py View 2 chunks +5 lines, -1 line 4 comments Download
M native_client_sdk/src/tools/lib/tests/get_shared_deps_test.py View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
binji
6 years, 6 months ago (2014-06-18 18:14:18 UTC) #1
Sam Clegg
https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py File native_client_sdk/src/tools/lib/get_shared_deps.py (right): https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py#newcode218 native_client_sdk/src/tools/lib/get_shared_deps.py:218: if name == 'libc.so' and 'bionic' not in rel_dirname: ...
6 years, 6 months ago (2014-06-18 18:21:30 UTC) #2
binji
https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py File native_client_sdk/src/tools/lib/get_shared_deps.py (right): https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py#newcode218 native_client_sdk/src/tools/lib/get_shared_deps.py:218: if name == 'libc.so' and 'bionic' not in rel_dirname: ...
6 years, 6 months ago (2014-06-18 18:29:36 UTC) #3
Sam Clegg
lgtm https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py File native_client_sdk/src/tools/lib/get_shared_deps.py (right): https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py#newcode218 native_client_sdk/src/tools/lib/get_shared_deps.py:218: if name == 'libc.so' and 'bionic' not in ...
6 years, 6 months ago (2014-06-18 18:36:23 UTC) #4
binji
https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py File native_client_sdk/src/tools/lib/get_shared_deps.py (right): https://codereview.chromium.org/341983002/diff/1/native_client_sdk/src/tools/lib/get_shared_deps.py#newcode218 native_client_sdk/src/tools/lib/get_shared_deps.py:218: if name == 'libc.so' and 'bionic' not in rel_dirname: ...
6 years, 6 months ago (2014-06-18 18:39:51 UTC) #5
binji
6 years, 6 months ago (2014-06-18 18:42:52 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 manually as r278133 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698