OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 /* | 9 /* |
10 * NaCl Simple/secure ELF loader (NaCl SEL). | 10 * NaCl Simple/secure ELF loader (NaCl SEL). |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 } | 403 } |
404 | 404 |
405 char const *NaClErrorString(NaClErrorCode errcode) { | 405 char const *NaClErrorString(NaClErrorCode errcode) { |
406 switch (errcode) { | 406 switch (errcode) { |
407 case LOAD_OK: | 407 case LOAD_OK: |
408 return "Ok"; | 408 return "Ok"; |
409 case LOAD_STATUS_UNKNOWN: | 409 case LOAD_STATUS_UNKNOWN: |
410 return "Load status unknown (load incomplete)"; | 410 return "Load status unknown (load incomplete)"; |
411 case LOAD_UNSUPPORTED_OS_PLATFORM: | 411 case LOAD_UNSUPPORTED_OS_PLATFORM: |
412 return "Operating system platform is not supported"; | 412 return "Operating system platform is not supported"; |
| 413 case LOAD_DEP_UNSUPPORTED: |
| 414 return "Data Execution Prevention is required but is not supported"; |
413 case LOAD_INTERNAL: | 415 case LOAD_INTERNAL: |
414 return "Internal error"; | 416 return "Internal error"; |
415 case LOAD_READ_ERROR: | 417 case LOAD_READ_ERROR: |
416 return "Cannot read file"; | 418 return "Cannot read file"; |
417 case LOAD_TOO_MANY_PROG_HDRS: | 419 case LOAD_TOO_MANY_PROG_HDRS: |
418 return "Too many program header entries in ELF file"; | 420 return "Too many program header entries in ELF file"; |
419 case LOAD_PROG_HDR_SIZE_TOO_SMALL: | 421 case LOAD_PROG_HDR_SIZE_TOO_SMALL: |
420 return "ELF program header size too small"; | 422 return "ELF program header size too small"; |
421 case LOAD_BAD_ELF_MAGIC: | 423 case LOAD_BAD_ELF_MAGIC: |
422 return "Bad ELF header magic number"; | 424 return "Bad ELF header magic number"; |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 nacl_global_xlate_base = mem_start; | 1087 nacl_global_xlate_base = mem_start; |
1086 | 1088 |
1087 #ifdef __GNUC__ | 1089 #ifdef __GNUC__ |
1088 _ovly_debug_event (); | 1090 _ovly_debug_event (); |
1089 #endif | 1091 #endif |
1090 } | 1092 } |
1091 | 1093 |
1092 void NaClGdbHook(struct NaClApp const *nap) { | 1094 void NaClGdbHook(struct NaClApp const *nap) { |
1093 StopForDebuggerInit(nap->mem_start); | 1095 StopForDebuggerInit(nap->mem_start); |
1094 } | 1096 } |
OLD | NEW |