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

Side by Side Diff: chrome/nacl/nacl_helper_bootstrap_linux.c

Issue 7599011: Reserve 1GB at the base address of linux nacl_helper for Native Client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding LD_BIND_NOW and addressing mcgrathr feedback Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 *
5 * Bootstraping the nacl_helper. This executable reserves the bottom 1G
6 * of the address space, then invokes nacl_helper_main. Note that,
agl 2011/08/16 16:44:39 |nacl_helper_main| doesn't match up with the funct
Brad Chen 2011/08/16 18:05:16 Done.
7 * as the text of this executable will eventually be overwritten by the
8 * native_client module, nacl_helper_init must not attempt to return.
9 */
10
11 #include <stdlib.h>
12
13 /* reserve 1GB of space */
14 #define ONEGIG (1 << 30)
15 char nacl_reserved_space[ONEGIG];
agl 2011/08/16 16:44:39 You pass in linker arguments to make the text segm
Brad Chen 2011/08/16 18:05:16 The kernel is quite inflexible about order of sect
16
17 void nacl_helper_init(int argc, char *argv[],
18 const char *nacl_reserved_space);
19
20 int main(int argc, char *argv[]) {
21 nacl_helper_init(argc, argv, nacl_reserved_space);
22 abort();
23 return 0; // convince the tools I'm sane.
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698