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

Issue 7599011: Reserve 1GB at the base address of linux nacl_helper for Native Client. (Closed)

Created:
9 years, 4 months ago by Brad Chen
Modified:
9 years, 4 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Reserve 1GB at the base address of linux nacl_helper for Native Client. Use PathService instead of command line flag to obtain path for helper. Adds a nacl_helper_bootstrap executable that implements the actual space reservation. BUG=nativeclient:480 TEST=manual for now Committed then reverted. See continuation on CL 7670011.

Patch Set 1 #

Patch Set 2 : Keep feature behind flag #

Patch Set 3 : Use nacl_helper for all linux builds #

Patch Set 4 : A few details to help with nacl integration #

Patch Set 5 : Fixes for 64-bit build #

Patch Set 6 : More cleanups for 64-bit build #

Patch Set 7 : More refinements to gyp files #

Total comments: 10

Patch Set 8 : Adding LD_BIND_NOW and addressing mcgrathr feedback #

Total comments: 10

Patch Set 9 : Addressing feedback from agl #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -12 lines) Patch
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/nacl.gypi View 1 2 3 4 5 6 7 2 chunks +32 lines, -2 lines 1 comment Download
M chrome/nacl/nacl_fork_delegate_linux.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -7 lines 0 comments Download
A chrome/nacl/nacl_helper_bootstrap_linux.c View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/nacl/nacl_helper_exports.txt View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_helper_linux.cc View 1 2 3 4 5 6 7 2 chunks +22 lines, -2 lines 0 comments Download
M tools/ld_bfd/ld View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Brad Chen
9 years, 4 months ago (2011-08-10 00:03:35 UTC) #1
Brad Chen
On 2011/08/10 00:03:35, Brad Chen wrote: The try-bots are green. Windows is a flake.
9 years, 4 months ago (2011-08-10 18:13:28 UTC) #2
Brad Chen
Adding Roland as he knows the linker stuff really well.
9 years, 4 months ago (2011-08-12 21:38:45 UTC) #3
Brad Chen
On 2011/08/12 21:38:45, Brad Chen wrote: > Adding Roland as he knows the linker stuff ...
9 years, 4 months ago (2011-08-15 19:52:58 UTC) #4
Roland McGrath
I can't speak to the Chrome parts, but the linking rules and the basic AS-reserving ...
9 years, 4 months ago (2011-08-15 20:15:51 UTC) #5
Brad Chen
http://codereview.chromium.org/7599011/diff/10003/chrome/nacl.gypi File chrome/nacl.gypi (right): http://codereview.chromium.org/7599011/diff/10003/chrome/nacl.gypi#newcode191 chrome/nacl.gypi:191: '-Wl,-Ttext-segment,10000,-z,max-page-size=0x1000', On 2011/08/15 20:15:51, Roland McGrath wrote: > Needs ...
9 years, 4 months ago (2011-08-15 23:02:28 UTC) #6
agl
http://codereview.chromium.org/7599011/diff/11010/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): http://codereview.chromium.org/7599011/diff/11010/chrome/common/chrome_paths.cc#newcode55 chrome/common/chrome_paths.cc:55: #if !defined(OS_MACOSX) && defined(OS_POSIX) ditto http://codereview.chromium.org/7599011/diff/11010/chrome/common/chrome_paths.h File chrome/common/chrome_paths.h (right): ...
9 years, 4 months ago (2011-08-16 16:44:39 UTC) #7
Brad Chen
PTAL http://codereview.chromium.org/7599011/diff/11010/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): http://codereview.chromium.org/7599011/diff/11010/chrome/common/chrome_paths.cc#newcode55 chrome/common/chrome_paths.cc:55: #if !defined(OS_MACOSX) && defined(OS_POSIX) On 2011/08/16 16:44:39, agl ...
9 years, 4 months ago (2011-08-16 18:05:16 UTC) #8
agl
LGTM
9 years, 4 months ago (2011-08-16 18:30:10 UTC) #9
bradn
9 years, 4 months ago (2011-08-16 22:43:53 UTC) #10
http://codereview.chromium.org/7599011/diff/20002/chrome/nacl.gypi
File chrome/nacl.gypi (right):

http://codereview.chromium.org/7599011/diff/20002/chrome/nacl.gypi#newcode195
chrome/nacl.gypi:195: './out/Debug/nacl_helper.so',
Here you've assumed Debug, you probably want:
'out/<(CONFIGURATION_NAME)/nacl_helper.so',
Actually, more correctly you want:
'<(PRODUCT_DIR)/nacl_helper.so',

Powered by Google App Engine
This is Rietveld 408576698