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

Issue 11743028: Partly change IRT load-skipping to be explicit. (Closed)

Created:
7 years, 11 months ago by jvoung (off chromium)
Modified:
7 years, 11 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Partly change IRT load-skipping to be explicit. From sel_ldr_launcher_standalone, revert to having the IRT load when -B is given. This reverts part of: https://codereview.chromium.org/10681005/ From chrome, accept irt_fd == -1 as a way to indicate that IRT loading will be skipped. Wait for this to roll into chrome, then this CL https://codereview.chromium.org/11761025/ will actually set that up for PNaCl's translator nexes. Once the chrome CL is in, we can come back and delete the other case where IRT loads can be skipped (when a segment gap is missing). BUG= http://code.google.com/p/nativeclient/issues/detail?id=3241 TEST= manual (patch this into Chrome, along with chrome-side CL and run PNaCl w/ TOOLS_REVISION at 10509). Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10533

Patch Set 1 #

Total comments: 8

Patch Set 2 : update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -27 lines) Patch
M src/trusted/service_runtime/sel_main.c View 1 chunk +8 lines, -19 lines 0 comments Download
M src/trusted/service_runtime/sel_main_chrome.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/trusted/service_runtime/sel_main_chrome.c View 1 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jvoung (off chromium)
7 years, 11 months ago (2013-01-03 23:25:58 UTC) #1
Mark Seaborn
LGTM https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/sel_main_chrome.c File src/trusted/service_runtime/sel_main_chrome.c (right): https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/sel_main_chrome.c#newcode311 src/trusted/service_runtime/sel_main_chrome.c:311: * TODO(mseaborn): Instead of looking for the absence ...
7 years, 11 months ago (2013-01-03 23:36:40 UTC) #2
jvoung (off chromium)
7 years, 11 months ago (2013-01-04 00:05:31 UTC) #3
https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
File src/trusted/service_runtime/sel_main_chrome.c (right):

https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
src/trusted/service_runtime/sel_main_chrome.c:311: * TODO(mseaborn): Instead of
looking for the absence of a segment gap,
On 2013/01/03 23:36:40, Mark Seaborn wrote:
> You can change this to TODO(jvoung) if you're going to do it. :-)

Done.

https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
src/trusted/service_runtime/sel_main_chrome.c:319: "Main executable has no
segment gap or irt_fd == -1; "
On 2013/01/03 23:36:40, Mark Seaborn wrote:
> You should probably drop this log message, or change the log level to >=1.  We
> don't want this to be printed when PNaCl is working fine.

Done.

https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
File src/trusted/service_runtime/sel_main_chrome.h (right):

https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
src/trusted/service_runtime/sel_main_chrome.h:37: * descriptors are emulated by
the C runtime library).  Optional; may be -1.
On 2013/01/03 23:36:40, Mark Seaborn wrote:
> Nit: can you word-wrap to roughly the same length as the rest of the
paragraph?

Done.

https://codereview.chromium.org/11743028/diff/1/src/trusted/service_runtime/s...
src/trusted/service_runtime/sel_main_chrome.h:38: * This is only optional for
non-ABI stable nexes.
On 2013/01/03 23:36:40, Mark Seaborn wrote:
> "optional when loading nexes that don't follow NaCl's stable ABI, such as the
> PNaCl translator" - just to be more explicit?

Done.

Powered by Google App Engine
This is Rietveld 408576698