2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LOADER_ELF_LOADER_H_
8 #define NATIVE_CLIENT_SRC_NONSFI_LOADER_ELF_LOADER_H_ 1
10 #include "native_client/src/include/nacl_base.h"
15 * Loads the ELF binary from the given file descriptor.
16 * This takes the ownership of the given fd, so a caller does not need to
18 * On error, this function crashes with NaClLog(LOG_FATAL).
20 uintptr_t NaClLoadElfFile(int fd);