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

Issue 731423004: Add options for base dir and redirecting files to IRT open resource and use it. (Closed)

Created:
6 years ago by jvoung (off chromium)
Modified:
6 years ago
CC:
native-client-reviews_googlegroups.com
Project:
nacl
Visibility:
Public.

Description

Add options for base dir and redirecting files to IRT open resource and use it. These options are set by env vars: NACL_IRT_OPEN_RESOURCE_BASE and NACL_IRT_OPEN_RESOURCE_REMAP. The redirection is used to map from libpnacl_irt_shim.a to libpnacl_irt_shim_dummy.a. Use these options with the PNaCl sandboxed translator, and roll PNaCl translator ld DEPS. DEPS roll brings in: https://codereview.chromium.org/770833002/ Also ensure that SPLIT_MODULE is always set in nativeld.py so that the code can assume that value is valid. Change the code so that when SPLIT_MODULE=1, the inputs are partitioned into llc_output/linker_input files and other linker input files, just like when SPLIT_MODULE > 1. The consistent partitioning helps check that all native libraries can use the same base_dir with open_resource. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3914 R=mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=14154

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : uncomment assert #

Total comments: 17

Patch Set 4 : simplify and add a comment #

Patch Set 5 : more clarification #

Patch Set 6 : one more review fix #

Patch Set 7 : typo #

Patch Set 8 : add deps change #

Patch Set 9 : rebase #

Total comments: 8

Patch Set 10 : more review, revert some of streaming-bitcode change #

Patch Set 11 : fix remap -- only compare up to the dash #

Patch Set 12 : size_t? #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -49 lines) Patch
M pnacl/COMPONENT_REVISIONS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M pnacl/driver/driver_env.py View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M pnacl/driver/nativeld.py View 1 2 4 chunks +32 lines, -38 lines 0 comments Download
M pnacl/driver/pnacl-translate.py View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -6 lines 1 comment Download
M src/untrusted/irt/irt_core_resource.c View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +62 lines, -1 line 1 comment Download

Messages

Total messages: 8 (1 generated)
jvoung (off chromium)
6 years ago (2014-12-01 19:17:18 UTC) #2
Mark Seaborn
https://codereview.chromium.org/731423004/diff/40001/pnacl/driver/nativeld.py File pnacl/driver/nativeld.py (right): https://codereview.chromium.org/731423004/diff/40001/pnacl/driver/nativeld.py#newcode189 pnacl/driver/nativeld.py:189: first_mainfile = all_inputs.index(main_input) Is this part just general cleanup, ...
6 years ago (2014-12-01 20:54:17 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/731423004/diff/40001/pnacl/driver/nativeld.py File pnacl/driver/nativeld.py (right): https://codereview.chromium.org/731423004/diff/40001/pnacl/driver/nativeld.py#newcode189 pnacl/driver/nativeld.py:189: first_mainfile = all_inputs.index(main_input) On 2014/12/01 20:54:16, Mark Seaborn wrote: ...
6 years ago (2014-12-01 22:00:10 UTC) #4
Mark Seaborn
LGTM, thanks https://codereview.chromium.org/731423004/diff/40001/src/untrusted/irt/irt_core_resource.c File src/untrusted/irt/irt_core_resource.c (right): https://codereview.chromium.org/731423004/diff/40001/src/untrusted/irt/irt_core_resource.c#newcode43 src/untrusted/irt/irt_core_resource.c:43: errno = ENAMETOOLONG; On 2014/12/01 22:00:10, jvoung ...
6 years ago (2014-12-02 00:42:08 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/731423004/diff/160001/src/untrusted/irt/irt_core_resource.c File src/untrusted/irt/irt_core_resource.c (right): https://codereview.chromium.org/731423004/diff/160001/src/untrusted/irt/irt_core_resource.c#newcode17 src/untrusted/irt/irt_core_resource.c:17: * An open resource implementation used for testing PNaCl's ...
6 years ago (2014-12-02 16:24:08 UTC) #6
Mark Seaborn
LGTM
6 years ago (2014-12-02 16:31:29 UTC) #7
jvoung (off chromium)
6 years ago (2014-12-02 16:40:17 UTC) #8
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as 14154 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698