| Index: mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
|
| diff --git a/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc b/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
|
| index c8edb8b0a959c55c67f9f08b406949a7995d14f8..778ee73942e0d030d372c1df3a3b0116372e4985 100644
|
| --- a/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
|
| +++ b/mojo/nacl/nonsfi/nexe_launcher_nonsfi.cc
|
| @@ -12,10 +12,15 @@
|
|
|
| namespace nacl {
|
|
|
| -void MojoLaunchNexeNonsfi(int nexe_fd, MojoHandle initial_handle) {
|
| +void MojoLaunchNexeNonsfi(int nexe_fd, MojoHandle initial_handle,
|
| + bool enable_translate_irt) {
|
| // Run -- also, closes the nexe_fd, removing the temp file.
|
| uintptr_t entry = NaClLoadElfFile(nexe_fd);
|
|
|
| + // Enable the translation section of the IRT, if requested.
|
| + if (enable_translate_irt) {
|
| + MojoPnaclTranslatorEnable();
|
| + }
|
| MojoSetInitialHandle(initial_handle);
|
| int argc = 1;
|
| char* argvp = const_cast<char*>("NaClMain");
|
|
|