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

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

Issue 389022: first step in factoring out code dealing with elf into a separate library.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « src/trusted/service_runtime/build.scons ('k') | src/trusted/service_runtime/elf_util.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2009 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file.
5 */
6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__
8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__ 1
9
10 #include "native_client/src/include/portability.h"
11 #include "native_client/src/trusted/service_runtime/nacl_error_code.h"
12
13 struct NaClElfImage;
14 struct Gio;
15
16 uint32_t NaClElfImageGetEntryPoint(struct NaClElfImage *image);
17
18 int NaClElfImageGetAlignBoundary(struct NaClElfImage *image);
19
20 struct NaClElfImage *NaClElfImageNew(struct Gio *gp);
21
22 NaClErrorCode NaClElfImageValidateElfHeader(struct NaClElfImage *image);
23
24 NaClErrorCode NaClElfImageValidateProgramHeaders(
25 struct NaClElfImage *image,
26 uint32_t addr_bits,
27 uint32_t *text_region_bytes,
28 uintptr_t *max_vaddr);
29
30 NaClErrorCode NaClElfImageLoad(struct NaClElfImage *image,
31 struct Gio *gp,
32 uint32_t addr_bits,
33 uintptr_t mem_start);
34
35
36 NaClErrorCode NaClElfImageValidateAbi(struct NaClElfImage *image);
37
38 void NaClElfImageDelete(struct NaClElfImage *image);
39
40
41 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/build.scons ('k') | src/trusted/service_runtime/elf_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698