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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/elf_util.h
===================================================================
--- src/trusted/service_runtime/elf_util.h (revision 0)
+++ src/trusted/service_runtime/elf_util.h (revision 0)
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2009 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can
+ * be found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__
+#define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__ 1
+
+#include "native_client/src/include/portability.h"
+#include "native_client/src/trusted/service_runtime/nacl_error_code.h"
+
+struct NaClElfImage;
+struct Gio;
+
+uint32_t NaClElfImageGetEntryPoint(struct NaClElfImage *image);
+
+int NaClElfImageGetAlignBoundary(struct NaClElfImage *image);
+
+struct NaClElfImage *NaClElfImageNew(struct Gio *gp);
+
+NaClErrorCode NaClElfImageValidateElfHeader(struct NaClElfImage *image);
+
+NaClErrorCode NaClElfImageValidateProgramHeaders(
+ struct NaClElfImage *image,
+ uint32_t addr_bits,
+ uint32_t *text_region_bytes,
+ uintptr_t *max_vaddr);
+
+NaClErrorCode NaClElfImageLoad(struct NaClElfImage *image,
+ struct Gio *gp,
+ uint32_t addr_bits,
+ uintptr_t mem_start);
+
+
+NaClErrorCode NaClElfImageValidateAbi(struct NaClElfImage *image);
+
+void NaClElfImageDelete(struct NaClElfImage *image);
+
+
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_ELF_UTIL_H__ */
« 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