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

Issue 389022: first step in factoring out code dealing with elf into a separate library.... (Closed)

Created:
11 years, 1 month ago by robertm
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

first step in factoring out code dealing with elf into a separate library. This should eventually allow code reuse by the validor(s). It also reduces the complexity of the nap struct. Committed: http://code.google.com/p/nativeclient/source/detail?r=1008

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -508 lines) Patch
M src/trusted/service_runtime/build.scons View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A src/trusted/service_runtime/elf_util.h View 5 6 7 8 1 chunk +41 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/elf_util.c View 6 7 8 1 chunk +466 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/mmap_test.c View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/service_runtime/nacl_config.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.h View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -64 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.c View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr_standard.c View 1 2 3 4 5 6 7 8 7 chunks +50 lines, -350 lines 0 comments Download
D src/trusted/service_runtime/sel_load_image.c View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -84 lines 0 comments Download
M src/trusted/service_runtime/sel_main.c View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -4 lines 0 comments Download
M src/trusted/service_runtime/service_runtime.gyp View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/service_runtime/web_worker_stub.c View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
robertm
11 years, 1 month ago (2009-11-12 17:18:58 UTC) #1
robertm
11 years, 1 month ago (2009-11-12 17:21:38 UTC) #2
robertm
Note: this is a somewhat preliminary CL that just barely compiles and the gyp changes ...
11 years, 1 month ago (2009-11-12 17:24:23 UTC) #3
robertm
This CL no passed the try bot please have a look. On 2009/11/12 17:24:23, robertm ...
11 years, 1 month ago (2009-11-12 20:32:26 UTC) #4
Mark Seaborn
A description of what logic has moved where and why would be useful, because a ...
11 years, 1 month ago (2009-11-12 23:50:02 UTC) #5
bsy
some feedback. btw, i have a cl (shm-for-text) that also touches on some of these ...
11 years, 1 month ago (2009-11-13 21:12:00 UTC) #6
bsy
On 2009/11/12 17:24:23, robertm wrote: > Note: this is a somewhat preliminary CL that just ...
11 years, 1 month ago (2009-11-13 21:14:09 UTC) #7
Mark Seaborn
http://codereview.chromium.org/389022/diff/6028/6040 File src/trusted/service_runtime/elf_util.c (right): http://codereview.chromium.org/389022/diff/6028/6040#newcode409 Line 409: /* we delay allocating till the end to ...
11 years, 1 month ago (2009-11-16 23:31:14 UTC) #8
irina.tuduce
I also have changes that touch on some of these files 8-( Elf64 changes..
11 years, 1 month ago (2009-11-18 09:29:51 UTC) #9
bsy
11 years, 1 month ago (2009-11-19 01:34:33 UTC) #10
minor nits.  plz fix.  o/w lgtm.

http://codereview.chromium.org/389022/diff/6028/6040
File src/trusted/service_runtime/elf_util.c (right):

http://codereview.chromium.org/389022/diff/6028/6040#newcode208
Line 208: /* Scan phdrs and do sanity checks in-line.  Verify that the load
/* on a line by itself.

http://codereview.chromium.org/389022/diff/6028/6040#newcode235
Line 235: /* TODO(robertm): check whether this is still valid with
use
/*
 * comment text
 */
style comments plz.

http://codereview.chromium.org/389022/diff/6028/6040#newcode362
Line 362: struct NaClElfImage* result;
use struct NaClElfImage *result to be consistent w/ rest of service runtime code
plz.

http://codereview.chromium.org/389022/diff/6028/6040#newcode422
Line 422: NaClErrorCode NaClElfImageLoad(struct NaClElfImage *image,
indent formal params so they line up like the rest of the code plz.

http://codereview.chromium.org/389022/diff/6028/6037
File src/trusted/service_runtime/elf_util.h (right):

http://codereview.chromium.org/389022/diff/6028/6037#newcode2
Line 2: * Copyright 2008, Google Inc.
use short copyright esp in new files plz.

http://codereview.chromium.org/389022/diff/6028/6029
File src/trusted/service_runtime/sel_ldr_standard.c (right):

http://codereview.chromium.org/389022/diff/6028/6029#newcode71
Line 71: struct NaClElfImage  *image = 0;
use NULL for pointers, 0 for integers (and "booleans") plz.

Powered by Google App Engine
This is Rietveld 408576698