EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Data Structures | Defines | Functions

BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ParseInf.h"
#include "CommonLib.h"
#include "EfiUtilityMsgs.h"

Go to the source code of this file.

Data Structures

struct  EFILDR_IMAGE
struct  EFILDR_HEADER

Defines

#define MAX_PE_IMAGES   63
#define FILE_TYPE_FIXED_LOADER   0
#define FILE_TYPE_RELOCATABLE_PE_IMAGE   1
#define UTILITY_NAME   "EfiLdrImage"
#define UTILITY_MAJOR_VERSION   0
#define UTILITY_MINOR_VERSION   1

Functions

void Version (void)
VOID Usage (VOID)
EFI_STATUS CountVerboseLevel (IN CONST CHAR8 *VerboseLevelString, IN CONST UINT64 Length, OUT UINT64 *ReturnValue)
UINT64 FCopyFile (FILE *in, FILE *out)
int main (int argc, char *argv[])

Detailed Description

Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Module Name:

efildrimage.c

Abstract:

Creates and EFILDR image. This tool combines several PE Image files together using following format denoted as EBNF: FILE := EFILDR_HEADER EFILDR_IMAGE + <PeImageFileContent> + The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.

Revision History

Definition in file EfiLdrImage.c.


Define Documentation

#define FILE_TYPE_FIXED_LOADER   0

Definition at line 38 of file EfiLdrImage.c.

#define FILE_TYPE_RELOCATABLE_PE_IMAGE   1

Definition at line 39 of file EfiLdrImage.c.

#define MAX_PE_IMAGES   63

Definition at line 37 of file EfiLdrImage.c.

#define UTILITY_MAJOR_VERSION   0

Definition at line 63 of file EfiLdrImage.c.

#define UTILITY_MINOR_VERSION   1

Definition at line 64 of file EfiLdrImage.c.

#define UTILITY_NAME   "EfiLdrImage"

Definition at line 58 of file EfiLdrImage.c.


Function Documentation

EFI_STATUS CountVerboseLevel ( IN CONST CHAR8 VerboseLevelString,
IN CONST UINT64  Length,
OUT UINT64 ReturnValue 
)

Definition at line 100 of file EfiLdrImage.c.

UINT64 FCopyFile ( FILE in,
FILE out 
)

Definition at line 118 of file EfiLdrImage.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 159 of file EfiLdrImage.c.

static void Usage ( VOID  )

Definition at line 91 of file EfiLdrImage.c.

void Version ( void  )

Definition at line 67 of file EfiLdrImage.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines