diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 22:33:41 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 22:33:41 +0000 |
commit | 5214902ed0a0419a8d13954fb233b8953140eb58 (patch) | |
tree | 73dc59b1002c4adca7002f8bca0047b395615350 /chrome/nacl/nacl_helper_bootstrap_linux.c | |
parent | 4a91d85a0201d32309bf4523a02db44cc292ca12 (diff) | |
download | chromium_src-5214902ed0a0419a8d13954fb233b8953140eb58.zip chromium_src-5214902ed0a0419a8d13954fb233b8953140eb58.tar.gz chromium_src-5214902ed0a0419a8d13954fb233b8953140eb58.tar.bz2 |
Revert 97040 - 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
Review URL: http://codereview.chromium.org/7599011
TBR=bradchen@google.com
Review URL: http://codereview.chromium.org/7669004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl/nacl_helper_bootstrap_linux.c')
-rw-r--r-- | chrome/nacl/nacl_helper_bootstrap_linux.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/nacl/nacl_helper_bootstrap_linux.c b/chrome/nacl/nacl_helper_bootstrap_linux.c deleted file mode 100644 index 7a0ace7..0000000 --- a/chrome/nacl/nacl_helper_bootstrap_linux.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * Bootstraping the nacl_helper. This executable reserves the bottom 1G - * of the address space, then invokes nacl_helper_init. Note that, - * as the text of this executable will eventually be overwritten by the - * native_client module, nacl_helper_init must not attempt to return. - */ - -#include <stdlib.h> - -/* reserve 1GB of space */ -#define ONEGIG (1 << 30) -char nacl_reserved_space[ONEGIG]; - -void nacl_helper_init(int argc, char *argv[], - const char *nacl_reserved_space); - -int main(int argc, char *argv[]) { - nacl_helper_init(argc, argv, nacl_reserved_space); - abort(); - return 0; // convince the tools I'm sane. -} |