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

Side by Side Diff: src/trusted/service_runtime/elf_util.c

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase (Saturday morning). Created 8 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl helper functions to deal with elf images 8 * NaCl helper functions to deal with elf images
9 */ 9 */
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 97 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86
98 # if NACL_BUILD_SUBARCH == 32 98 # if NACL_BUILD_SUBARCH == 32
99 # define EM_EXPECTED_BY_NACL EM_386 99 # define EM_EXPECTED_BY_NACL EM_386
100 # elif NACL_BUILD_SUBARCH == 64 100 # elif NACL_BUILD_SUBARCH == 64
101 # define EM_EXPECTED_BY_NACL EM_X86_64 101 # define EM_EXPECTED_BY_NACL EM_X86_64
102 # else 102 # else
103 # error "No NACL_BUILD_SUBARCH for x86 -- are we on x86-128?" 103 # error "No NACL_BUILD_SUBARCH for x86 -- are we on x86-128?"
104 # endif 104 # endif
105 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm 105 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_arm
106 # define EM_EXPECTED_BY_NACL EM_ARM 106 # define EM_EXPECTED_BY_NACL EM_ARM
107 #elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips
108 # define EM_EXPECTED_BY_NACL EM_MIPS
107 #else 109 #else
108 # error "Unknown platform!" 110 # error "Unknown platform!"
109 #endif 111 #endif
110 112
111 113
112 static void NaClDumpElfHeader(int loglevel, Elf_Ehdr *elf_hdr) { 114 static void NaClDumpElfHeader(int loglevel, Elf_Ehdr *elf_hdr) {
113 115
114 #define DUMP(m,f) do { NaClLog(loglevel, \ 116 #define DUMP(m,f) do { NaClLog(loglevel, \
115 #m " = %" f "\n", \ 117 #m " = %" f "\n", \
116 elf_hdr->m); } while (0) 118 elf_hdr->m); } while (0)
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 765
764 766
765 void NaClElfImageDelete(struct NaClElfImage *image) { 767 void NaClElfImageDelete(struct NaClElfImage *image) {
766 free(image); 768 free(image);
767 } 769 }
768 770
769 771
770 uintptr_t NaClElfImageGetEntryPoint(struct NaClElfImage *image) { 772 uintptr_t NaClElfImageGetEntryPoint(struct NaClElfImage *image) {
771 return image->ehdr.e_entry; 773 return image->ehdr.e_entry;
772 } 774 }
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/build.scons ('k') | src/trusted/service_runtime/include/bits/wordsize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698